Skip to content

What is the link path for alternate languages #2341

Answered by squidfunk
Andre601 asked this question in Q&A
Discussion options

You must be logged in to vote

The link should be an absolute path to the alternate language, the site_url of the alternate language if you will. Currently, switching the language on any site will always transport you to this exact link. In the future (not too far from now), it will be supported to link a specific page to another page, e.g.:

https://example.com/en/*                -> https://example.com/de/              # Now
https://example.com/en/getting-started/ -> https://example.com/de/vorbereitung/ # Future
https://example.com/en/releases/        -> https://example.com/de/versionen/    # Future

Note that there is also a lang attribute, which is currently not used, but will be very helpful for SEO in the near future.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Andre601
Comment options

@squidfunk
Comment options

@Andre601
Comment options

Answer selected by Andre601
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants