I am creating a theme which applies a floating button to every page, which should link to the /contact page in this case
How would I go about ensuring that the proper link gets put into the anchor tag in my template? Taking into account localized pages, etc.
I was thinking to put a variable “buttontarget” into each page’s frontmatter, so the twig can construct the proper localized url out of that.
So what should the buttontarget actually contain to identify the page? (the folder name of the page02.contact, just /contact/myform as a full path, or myform, the slug)
and how do i transform whatever the variable contains to a working page link in twig?
again, i need the language routing to still apply for that