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:
Akash Nimare
2018-06-06 03:18:58 +05:30
parent 3a8a5a39bd
commit 84d3a4dbf3

View File

@@ -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);
});
}());