-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support localized URLs #206
Comments
Do you have pointers where this is documented for those JS frameworks? |
I am glad you asked. ;-) https://nextjs.org/docs/pages/building-your-application/routing/internationalization |
OK thanks. It's not entirely clear to me how it works, because they claim they redirect to a prefixed URI, or a custom domain, so that the selected locale is apparent. So, suppose I go to Now what happens if I go to That would defeat indexing if the crawler is set to prefer Also, I'm not entirely sure how to implement this, given that it also ties in to reverse routing. A bit more thinking is required. |
It does not use the browser language at all. Using a language selector would switch the URL and language, but the idea is that the (google) indexer sends you to the correct URL because you are searching in a specific language. So this would be a complete alternative to how the localization currently works. |
I don't think that's accurate:
|
Ok, I see, but only the root. That does make sense. I used it previously in an ecommerce project and only the product details pages were of importance to the indexer. So it wouldn't cause an issue for SEO in that case. Although it would be better if it didn't redirect the root for indexers though. I did use static generation for the homepage, so im not sure if that still applies in that case. |
Interesting that Google says its bot doesn't have any Apparently, it advises pages to list their localised versions either via |
Makes me wonder if we should have a DEV UI or Quarkus CLI command to generate a sitemap. |
I did add the alternative versions in the header on that project if I remember correctly. But I had to do it separately. There was no automatic nextjs support for it. Sitemap generation could be interesting, but there are also some caveats here that I had to learn the hard way. You can add 50k entries to a sitemap, but its better to split them up in sitemaps of 1k or google will pretty much ignore your sitemap altogether. I had 80k URLs at one point. |
Support localized URLs for SEO purposes, eg:
/some-url (en) [default locale]
/nl/some-url (nl)
Similar to what all JS frameworks out there support.
The text was updated successfully, but these errors were encountered: