Skip to content
This repository
Browse code

BUGFIX Fixed History.js library handling of relative URLs combined wi…

…th a base URL (was causing infinite loops, e.g. /admin/#/admin/admin/admin/security) (#7002)
  • Loading branch information...
commit e6aa9ae017c57b4f223061254e4b1dcd1c84b778 1 parent f34e58f
Ingo Schommer authored March 30, 2012
5  admin/thirdparty/history-js/scripts/uncompressed/history.html4.js
@@ -429,7 +429,10 @@
429 429
 				}
430 430
 
431 431
 				// Create State
432  
-				currentState = History.extractState(History.getFullUrl(currentHash||document.location.href,false),true);
  432
+				// MODIFIED ischommer: URL normalization needs to respect our <base> tag,
  433
+				// otherwise will go into infinite loops
  434
+				currentState = History.extractState(History.getFullUrl(currentHash||document.location.href,true),true);
  435
+				// END MODIFIED
433 436
 
434 437
 				// Check if we are the same state
435 438
 				if ( History.isLastSavedState(currentState) ) {

0 notes on commit e6aa9ae

Please sign in to comment.
Something went wrong with that request. Please try again.