I noticed that some of our users actually put in uppercase characters in the url, which causes the link to open in a new window when it should open in the same window.

Steps to replicate:

1.) On http://example.com, add a link the points to http://example.com/test
2.) Add another link that points to http://Example.com/test

The first will open in the same window, the second will open in a new window.

Maybe run the href through toLowerCase() first.

CommentFileSizeAuthor
#2 external-736052-2.patch484 bytesq0rban
#2 external-736052-2b.patch1.09 KBq0rban

Comments

q0rban’s picture

FYI, this only happens in Safari, as far as I can tell.

q0rban’s picture

Status: Active » Needs review
StatusFileSize
new1.09 KB
new484 bytes

First patch is just this fix.. 2b has the Drupal behaviors patch from #736046: Use drupal behaviors and this fix.

mcrittenden’s picture

Status: Needs review » Fixed

Committed to 6.x-1.9. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.