Skip to content

Commit

Permalink
fix: fix browser back button for translation redirects (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
vi-nastya authored Apr 1, 2021
1 parent a223cf8 commit 1632cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/doc-layout/doc-layout.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export const DocLayout = ({
pageTranslations[locale] &&
locale !== urlLocale
) {
navigate(pageTranslations[locale].path);
navigate(pageTranslations[locale].path, { replace: true });
}
}, [location]);

Expand Down

0 comments on commit 1632cb9

Please sign in to comment.