Skip to content
Snippets Groups Projects
Commit b9789c18 authored by Lachlan Ennis's avatar Lachlan Ennis
Browse files

Issue #2962335 by elachlan: External link icon not always shown after update to 7.x-1.19

parent b9309521
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,8 @@
// Strip the host name down, removing ports, subdomains, or www.
var pattern = /^(([^\/:]+?\.)*)([^\.:]{1,})((\.[a-z0-9]{1,253})*)(:[0-9]{1,5})?$/;
var host = window.location.host.replace(pattern, '$3$4');
var subdomain = window.location.host.replace(pattern, '$1');
var host = window.location.host.replace(pattern, '$2$3');
var subdomain = window.location.host.replace(host, '');
// Determine what subdomains are considered internal.
var subdomains;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment