File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1114,8 +1114,8 @@ if(jQuery) jQuery.noConflict();
1114
1114
} ,
1115
1115
1116
1116
isSameHost : function ( url ) {
1117
- var base_url = window . XE . URI ( window . request_uri ) . normalizePort ( ) ;
1118
- var target_url = window . XE . URI ( url ) . normalizePort ( ) ;
1117
+ var base_url = window . XE . URI ( window . request_uri ) . normalizePort ( ) . normalizePathname ( ) ;
1118
+ var target_url = window . XE . URI ( url ) . normalizePort ( ) . normalizePathname ( ) ;
1119
1119
1120
1120
if ( ! target_url . hostname ( ) ) {
1121
1121
target_url = target_url . absoluteTo ( window . request_uri ) ;
@@ -1124,7 +1124,7 @@ if(jQuery) jQuery.noConflict();
1124
1124
base_url = base_url . hostname ( ) + base_url . port ( ) + base_url . directory ( ) ;
1125
1125
target_url = target_url . hostname ( ) + target_url . port ( ) + target_url . directory ( ) ;
1126
1126
1127
- return base_url === target_url ;
1127
+ return target_url . indexOf ( base_url ) === 0 ;
1128
1128
}
1129
1129
} ;
1130
1130
You can’t perform that action at this time.
0 commit comments