Skip to content

Commit 1632cb9

Browse files
authored
fix: fix browser back button for translation redirects (#250)
1 parent a223cf8 commit 1632cb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/doc-layout/doc-layout.view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export const DocLayout = ({
247247
pageTranslations[locale] &&
248248
locale !== urlLocale
249249
) {
250-
navigate(pageTranslations[locale].path);
250+
navigate(pageTranslations[locale].path, { replace: true });
251251
}
252252
}, [location]);
253253

0 commit comments

Comments
 (0)