aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2018-04-09 20:50:41 -0400
committerAndrew Manning <tamanning@zoho.com>2018-04-09 20:50:41 -0400
commit1aba495a1c1feae2a02275d2db5dcd10c877d859 (patch)
tree37c0483ec1fac8dd29c3e9fe11b4e4c52b76fdde /view
parent482e26ae26b07a9444452dc41ad46bb4cbe08424 (diff)
downloadvolse-hubzilla-1aba495a1c1feae2a02275d2db5dcd10c877d859.tar.gz
volse-hubzilla-1aba495a1c1feae2a02275d2db5dcd10c877d859.tar.bz2
volse-hubzilla-1aba495a1c1feae2a02275d2db5dcd10c877d859.zip
Replace pushState with replaceState to prevent browser history clutter in Help pages.
Diffstat (limited to 'view')
-rw-r--r--view/js/mod_help.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/mod_help.js b/view/js/mod_help.js
index 8ee89dd61..a37207807 100644
--- a/view/js/mod_help.js
+++ b/view/js/mod_help.js
@@ -53,7 +53,7 @@ $(document).ready(function () {
.removeClass('selected-doco-nav')
.eq(i).addClass('selected-doco-nav');
if (typeof ($('#doco-side-toc li').eq(i).find('a').attr('href').split('#')[1]) !== 'undefined') {
- window.history.pushState({}, '', location.href.split('#')[0] + '#' + $('#doco-side-toc li').eq(i).find('a').attr('href').split('#')[1]);
+ window.history.replaceState({}, '', location.href.split('#')[0] + '#' + $('#doco-side-toc li').eq(i).find('a').attr('href').split('#')[1]);
}
}
});
@@ -100,7 +100,7 @@ $(document).ready(function () {
}
// Update the address bar to reflect the loaded language
- window.history.pushState({}, '', '/' + pathParts.join('/'));
+ window.history.replaceState({}, '', '/' + pathParts.join('/'));
// Highlight the language in the language selector that is currently viewed
$('.lang-selector').find('.lang-choice:contains("' + help_language + '")').addClass('active');