Skip to content

Commit

Permalink
fix(routing): 🐛 made back button work with locale redirection
Browse files Browse the repository at this point in the history
Closes #50.
  • Loading branch information
arctic-hen7 committed Oct 6, 2021
1 parent b7d6eb6 commit cf60c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/perseus/src/locale_detector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn detect_locale(url: String, locales: Locales) {
web_sys::window()
.unwrap()
.location()
.set_href(&format!("/{}/{}", locale, url))
.replace(&format!("/{}/{}", locale, url))
.unwrap();
}

Expand Down

0 comments on commit cf60c12

Please sign in to comment.