While using the latest DEV version of extlink module the hosts are not recognized correctly by the js, which is parsing the current window.location.host - i only get the TLD and not the full hostname.
Example:
* URL: https://www.ispo.com/en/munich/press/sports-blogger-at-ispo-munich
Debug output:
While using the Exclude links with the same primary domain. and Open external links in a new window. settings on the ispo.com domain this leads to the problem, that all .com are handled as internal domains and won't open in a new window.
As already mentioned in #2914838 the whole subdomain detection seems to be not as reliable as it should be.
SteffenR
Comment | File | Size | Author |
---|---|---|---|
#3 | host_recognition-2921495-3.patch | 6.39 KB | SteffenR |
| |||
extlink__host_name_detection.png | 30.59 KB | SteffenR |
Comments
Comment #2
SteffenRAttached you find a patch solving the issue.
Comment #3
SteffenRFixing new line issue in minified javascript.
Comment #4
SteffenRComment #5
BerdirCan confirm this, patch seems to work well.
Comment #7
elachlan CreditAttribution: elachlan commentedI've pushed through the change to extlink.js, but the minified file needs to be re-rolled.
Comment #8
Berdir@elachlan: Related question? Does it *really* make sense to keep maintaining that file at all? It's quite a pain to reroll patches because of that and it's the only file in all core/contrib modules that I use that is like that. It's really not that big, so can't make such a difference?
Comment #9
elachlan CreditAttribution: elachlan commentedYeah I am not even sure if its used to be honest. I believe Drupal will minify it anyway. I think it was for some specific case when someone asked for it.
Marking this as fixed.
Comment #10
Berdirafaik it is currently still used, so this isn't really fixed, but I'll open an issue to remove it then.
Comment #12
dpagini CreditAttribution: dpagini as a volunteer commentedSorry to comment on a closed issue.. was a follow up issue ever opened for removing the minified js?