[BUG] URL formatting showDefaults: false
not working as expected with multiple locales
#976
Labels
showDefaults: false
not working as expected with multiple locales
#976
Summary
Using the URL formatting
showDefaults
setting set tofalse
with multiple locales shows the expected URL and content when navigating with the default locale. But switching the locale to another locale different than the default locale using the dropdown selector in the footer component doesn't generate the URL with the selected locale, instead the URL with the default locale is generated and the content is reloaded.The current workaround is to use
showDefaults: true
when using multiple locales.Thanks @clavery for reporting the issue.
Steps To Reproduce
Expected result
Choosing a locale other than the default should generate a URL that includes the selected locale in the URL and the content should be rendered in that locale.
Actual result
After selecting a locale different from the default one, using the locale selector in the footer, the generated URL doesn't contain the locale in the URL and the content is rendered using the default locale.
System Information (as applicable)
Browser:
Node version:
pwa-kit version:
Desktop OS:
Mobile Device Info:
The text was updated successfully, but these errors were encountered: