-
Notifications
You must be signed in to change notification settings - Fork 66
No variable for current url or base url #154
Comments
Mmm, this is a good feature addition. It will be especially needed if we get something like #158 or custom page slugs for collection records. How would you envision the API looking? Side note – if pages and collection records get a more opinionated "settings" panel (mentioned at the end of #158 and in #8, we may want to add social media metadata config options on a per-page and per-post basis. This page settings proposal as not been written yet though and is probably tangential to a |
Personally I'd simply want the request information to be made available in a global variable, containing full request url, base url, host and scheme, or a function that allows you to retrieve the absolute url for an asset. |
I agree. Maybe a So you could end up doing:
|
This issue has been automatically marked as stale after 90 days of inactivity. It will be closed if no further activity occurs. |
From what I can gather (at least not in the docs) there is no way to access the current URL or site base URL. This prevents configuring opengraph tags and other meta correctly.
Your Environment
Include relevant details, so others can replicate the issue.
The text was updated successfully, but these errors were encountered: