BUGFIX Fixed History.js library handling of relative URLs combined with a base URL (was causing infinite loops, e.g. /admin/#/admin/admin/admin/security) (#7002)

This commit is contained in:
Ingo Schommer 2012-03-30 15:25:31 +02:00
parent f34e58f573
commit e6aa9ae017

View File

@ -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) ) {