From 84d3a4dbf3bf1e5005f9253263e2f649f8304d38 Mon Sep 17 00:00:00 2001 From: Akash Nimare Date: Wed, 6 Jun 2018 03:18:58 +0530 Subject: [PATCH] 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. --- static/js/portico/help.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/portico/help.js b/static/js/portico/help.js index 03390dfaa0..049833f379 100644 --- a/static/js/portico/help.js +++ b/static/js/portico/help.js @@ -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); }); }());