We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d04041f + 2948b36 commit 6c6e76fCopy full SHA for 6c6e76f
src/plugin/wrapPageElement.tsx
@@ -54,7 +54,7 @@ export const wrapPageElement = (
54
55
if (detected !== defaultLanguage) {
56
const queryParams = search || '';
57
- const newUrl = withPrefix(`/${detected}${location.pathname}${queryParams}`);
+ const newUrl = withPrefix(`/${detected}${location.pathname}${queryParams}${location.hash}`);
58
window.location.replace(newUrl);
59
return null;
60
}
0 commit comments