mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Fix URI.js error when processing mailto: links
https://www.xetown.com/rxe_issue/792186 xpressengine/xe-core#2174
This commit is contained in:
parent
0a518910e6
commit
66e8ba4fca
1 changed files with 7 additions and 0 deletions
|
|
@ -198,6 +198,13 @@
|
|||
|
||||
/* 동일 사이트 내 주소인지 판단 (프로토콜 제외) */
|
||||
isSameHost: function(url) {
|
||||
if (url.match(/^\/[^\/]/)) {
|
||||
return true;
|
||||
}
|
||||
if (url.match(/^\w+:[^\/]*$/)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var site_baseurl = window.XE.URI(window.request_uri).normalizePort().normalizePathname();
|
||||
site_baseurl = site_baseurl.hostname() + site_baseurl.directory();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue