Every Version Of Ie Opening Links In New Window
I've been designing a website and have been using Safari and Chrome for most of the testing. I just tried testing Firefox and that went smoothly too. Leave it to IE to throw in a w
Solution 1:
I had the same problem with my Links. The problem is the leading /
(slash) in /basedir/controller/action
.
The solution is to define a <base>
tag in your HTML head.
You can automate this tag for testing => production environment if you'r using YII:
<?phpecho'<base href="'.$this->createAbsoluteUrl('/').'/" />'.PHP_EOL; ?>
You can even define a target in your <base>
tag: target="_self"
Solution 2:
Thank you for all your suggestions. I was able to hop on a physical computer's version of IE, and while certain links are still broken, they do not open in new windows.
I guess this is just an issue with browserstack.com. But considering browserstack is a website specifically designed to test browsers on native operating systems, this really is something they should look into.
Post a Comment for "Every Version Of Ie Opening Links In New Window"