diff --git a/magazine.js b/magazine.js index 575ca38..e91d224 100755 --- a/magazine.js +++ b/magazine.js @@ -729,9 +729,9 @@ function saveURLState(){ // clear the url if it does not match the current page... } else { + // XXX need to do this AFTER the page is changed, and not befor... if(n != parseInt(anchor) // do not remove linked pages... - // XXX this does not work when navigating from a different page... || (elem.hasClass('page') && n != getPageNumber(elem)) || n != getPageNumber(elem).parents('.page')){ window.location.hash = ''