mirror of https://github.com/zulip/zulip.git
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:
parent
bdc4721aee
commit
178e0b7d47
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue