Skip to content

Commit

Permalink
Fix linking to page and secton after breaking it introducing url pare…
Browse files Browse the repository at this point in the history
…meter

for theme
  • Loading branch information
Tom Reijnders committed Jun 19, 2018
1 parent a15339b commit bf1bf59
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/site/parent_templates/site/common/js/application.js
Expand Up @@ -89,9 +89,12 @@ function loadContent(){
}

// If we have a start page/section then extract it and clear the url
if (urlParams.page != undefined) {
startPage = parseInt(urlParams.page);
}
if (window.location.hash.length > 0) {
pageLink = window.location.hash.substring(1);
if (pageLink.substring(0,4) == "page") {
startPage = parseInt(pageLink.substring(4), 10) - 1;
}
}
}

function cssSetUp(param) {
Expand Down

0 comments on commit bf1bf59

Please sign in to comment.