Skip to content

Commit

Permalink
BUGFIX Fixed History.js library handling of relative URLs combined wi…
Browse files Browse the repository at this point in the history
…th a base URL (was causing infinite loops, e.g. /admin/#/admin/admin/admin/security) (#7002)
  • Loading branch information
chillu committed Mar 30, 2012
1 parent f34e58f commit e6aa9ae
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -429,7 +429,10 @@
}

// Create State
currentState = History.extractState(History.getFullUrl(currentHash||document.location.href,false),true);
// MODIFIED ischommer: URL normalization needs to respect our <base> tag,
// otherwise will go into infinite loops
currentState = History.extractState(History.getFullUrl(currentHash||document.location.href,true),true);
// END MODIFIED

// Check if we are the same state
if ( History.isLastSavedState(currentState) ) {
Expand Down

0 comments on commit e6aa9ae

Please sign in to comment.