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.
location.pathname
originalPath
1 parent 832e247 commit 0054bc0Copy full SHA for 0054bc0
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}${originalPath}${queryParams}`);
+ const newUrl = withPrefix(`/${detected}${location.pathname}${queryParams}`);
58
window.location.replace(newUrl);
59
return null;
60
}
0 commit comments