Avoid redirects

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2023-07-03 14:59:26 +02:00
parent f0c9a26242
commit 11785fc243
5 changed files with 197 additions and 64 deletions

View File

@@ -55,7 +55,7 @@ export class Initializer {
languageDetector.addDetector({
name: "urlFragment",
// Look for a language code in the URL's fragment
lookup: () => getUrlParams().lang ?? undefined,
lookup: () => getUrlParams(true).lang ?? undefined,
});
i18n
@@ -136,7 +136,7 @@ export class Initializer {
}
// Custom fonts
const { fonts, fontScale } = getUrlParams();
const { fonts, fontScale } = getUrlParams(true);
if (fontScale !== null) {
document.documentElement.style.setProperty(
"--font-scale",