mirror of https://github.com/zulip/zulip.git
help: Fix back button on help pages.
We should use update_page function for popstate event so that we can fetch and update the help articles correctly. Fixes: #9617.
This commit is contained in:
parent
3a8a5a39bd
commit
84d3a4dbf3
|
@ -199,7 +199,7 @@ function scrollToHash(container) {
|
|||
|
||||
window.addEventListener("popstate", function () {
|
||||
var path = window.location.pathname;
|
||||
$(".markdown .content").html(html_map[path]);
|
||||
update_page(html_map, path, container);
|
||||
});
|
||||
|
||||
}());
|
||||
|
|
Loading…
Reference in New Issue