Skip to content

Commit

Permalink
Tabs now preserve query string (#7658)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantam-fm authored Oct 20, 2021
1 parent 4e1b0d8 commit 8b52cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docfx.website.themes/default/styles/docfx.js
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ $(function () {
}

function readTabsQueryStringParam() {
var qs = parseQueryString();
var qs = parseQueryString(window.location.search);
var t = qs.tabs;
if (t === undefined || t === '') {
return [];
Expand All @@ -999,7 +999,7 @@ $(function () {
}

function updateTabsQueryStringParam(state) {
var qs = parseQueryString();
var qs = parseQueryString(window.location.search);
qs.tabs = state.selectedTabs.join();
var url = location.protocol + "//" + location.host + location.pathname + "?" + toQueryString(qs) + location.hash;
if (location.href === url) {
Expand Down

0 comments on commit 8b52cb5

Please sign in to comment.