navbar: Use location.href instead of location.replace.

As per https://stackoverflow.com/questions/1865837/ location.href
should be preferred to location.replace in some places due to the
fact that location.replace violates browser history and breaks back key.
This commit is contained in:
YashRE42 2020-04-23 00:59:21 +05:30 committed by Tim Abbott
parent bdc4721aee
commit 178e0b7d47
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ exports.exit_search = function () {
exports.close_search_bar_and_open_narrow_description(); exports.close_search_bar_and_open_narrow_description();
} else { } else {
// for "searching narrows", we redirect // for "searching narrows", we redirect
window.location.replace(filter.generate_redirect_url()); window.location.href = filter.generate_redirect_url();
} }
}; };