Skip to content

How to automatically fallback to the default language when a requested page doesn't have a translation? #1998

Answered by chalin
huanlin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. I'm experimenting with (and hence cannot fully yet endorse this approach) the use of mount points to specify fallback pages. This is effectively the mount solution proposed by @jmooring in Do all page bundles need localized copies once you add a new language?, that you pointed out.

This approach comes at a cost: it effectively duplicates pages, which is a problem for SEO ... unless we set the canonical link properly. I'm working on fixing the canonical link, you can track progress via open-telemetry/opentelemetry.io#4487. I'll see if I can port a variant of that solution to Docsy (#1537) when I've vetted it enough.

@jmooring: are you aware if there are other fixes elsewhere for this c…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@huanlin
Comment options

Answer selected by huanlin
Comment options

You must be logged in to vote
1 reply
@chalin
Comment options

Comment options

You must be logged in to vote
2 replies
@chalin
Comment options

@jmooring
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants