Skip to content

Commit 78ace2f

Browse files
author
bnu
committed
Merge branch 'release/1.8.44'
2 parents 937575c + c074263 commit 78ace2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common/js/xe.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ if(jQuery) jQuery.noConflict();
11141114
},
11151115

11161116
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();
11191119

11201120
if(!target_url.hostname()) {
11211121
target_url = target_url.absoluteTo(window.request_uri);
@@ -1124,7 +1124,7 @@ if(jQuery) jQuery.noConflict();
11241124
base_url = base_url.hostname() + base_url.port() + base_url.directory();
11251125
target_url = target_url.hostname() + target_url.port() + target_url.directory();
11261126

1127-
return base_url === target_url;
1127+
return target_url.indexOf(base_url) === 0;
11281128
}
11291129
};
11301130

common/js/xe.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)