bug: static rendered html lang is always "en" + missing "hreflang" #5086
Replies: 2 comments
|
bump ^. |
|
Adding a data point for the single-language case, which I think is the part of this that is still broken. Our docs site is published entirely in Brazilian Portuguese. There is no English version and none is planned. The rendered HTML is What we tried, and the result:
I also checked the published This lines up with the root cause described in this thread: the document language appears to be derived from the URL locale prefix, and since the default language never gets a prefix, it falls back to a hardcoded The impact is not cosmetic. Screen readers use Would it be possible to honor |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Steps to reproduce
docs.jsonconfigure multiple languages vianavigation.languagesbased on instructions in https://www.mintlify.com/docs/guides/internationalization/ko/*Problem 1
https://{YOUR_MINTLIFY_DOMAIN}/koin Chrome<html />tag'slangproperty's value asko--> Correct behaviour<html />tag'slangproperty's value asen--> Wrong behaviourProblem 2
https://{YOUR_MINTLIFY_DOMAIN}/in Chrome<link rel="alternate" hreflang="ko" href="{YOUR_MINTLIFY_DOMAIN}/ko/" />is not present<link rel="alternate" hreflang="x-default" href="{YOUR_MINTLIFY_DOMAIN}/" />is not presentObservations
Problem 1
en) and only updated in the browserProblem 1 - Actual Outcome
Static render from server (wrong):
Dynamic render in browser (correct):
Problem 1 - Expected Outcome
Static render from server (correct):
Dynamic render in browser (correct):
Problem 2
Problem 2 - Actual outcome
Problem 2 - Expected Outcome
Context
I have translated pages in my docs where:
/*: English/ko/*: KoreanReferences
All reactions