Replies: 1 comment 4 replies
-
Thank you for the question! This came up before, I think the docs currently don't do a good job at answering this. I've tried to clarify this here: #1808. Would you like to have a look and see if this helps? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the routing.ts file I am using the
localePrefix = 'as-needed'
so pages works ondomain-name.com/...
and notdomaine-name.com/en/...
.But when I use
Link
from"i18n/routing"
, but it link todomaine-name.com/en/...
, that generate a redirection to"domain-name.com/..."
. Not very good for SEO. I've created a homemade function so far, but I believe it's better to use Next-Intl functions.Is there a way to get the Next-Intl Link function follow the "as-needed" rule?
Example of Link in LocaleSwitcher:
Thank you
Beta Was this translation helpful? Give feedback.
All reactions