Replies: 2 comments
-
Yes, the However, you can use the https://remix.run/docs/en/main/route/meta export const meta = ({ data }) => [
{
tagName: 'link',
rel: 'alternate',
href: `https://example.com/en/products/${data.id}`,
hrefLang: 'en',
},
// ...
] |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you so much. That works fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I need to setup canonical and alternate meta link tags in the head of my website pages. But to do that I need to get the url path so that I can make decisions what is canonical and what is alternate. But the LinksFunction takes no arguments, like the MetaFunction. I need to make these decisions server side.
Example:
url = https://example.com/products/$id
Now I need to setup links like these:
How do I do that?
I know i18n is not a focus for Remix, but people do develop multi-language sites and have problems :)
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions