You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, it's a pretty simple requirement, but I couldn't find a good solution.
I have a link field where the editor can select an entry. Now, I want to use this URL, for example, as the canonical URL of the page. For this, I need to convert the relative URL into an absolute URL.
Currently, I have three options:
Use the join or ensure_left (or other string) modifiers in Antlers to combine the app URL with the entry's URL.
Use the link tag, but this doesn’t work with multi-site setups. For example, {{ link :to="my_link_field" absolute="true" }} will turn /en/test into https://mydomain.test/en/en/test 🫨
Create a custom modifier like{{ my_link_field | to_full_url }}.
Option 3 is what I'm requesting through this idea.
The text was updated successfully, but these errors were encountered:
Actually, it's a pretty simple requirement, but I couldn't find a good solution.
I have a link field where the editor can select an entry. Now, I want to use this URL, for example, as the canonical URL of the page. For this, I need to convert the relative URL into an absolute URL.
Currently, I have three options:
join
orensure_left
(or other string) modifiers in Antlers to combine the app URL with the entry's URL.{{ link :to="my_link_field" absolute="true" }}
will turn/en/test
intohttps://mydomain.test/en/en/test
🫨{{ my_link_field | to_full_url }}
.Option 3 is what I'm requesting through this idea.
The text was updated successfully, but these errors were encountered: