mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
f34e58f573
commit
e6aa9ae017
@ -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) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user