Page 1 of 1

Empty base tag causing issues

Posted: Thu 15. Nov 2012, 18:04
by Haasboy
Hi all

I've got a problem on the website I'm managing. The issues lies only with IE7, and that is when I put an empty base tag into the head of the template. Now I've put an empty base tag so that I can use anchors on the web pages, otherwise anchors will redirect to the homepage. However in IE7 instead of including the full url (e.g. http://www.urlofsite/alias-name.html), it only loads the alias tag (http://alias-name.html). Does any body know how to solve this issue?

Re: Empty base tag causing issues

Posted: Thu 15. Nov 2012, 20:04
by Oliver Georgi
you cannot use an empty base tag.

A solution can be to use a frontend render in a way like this:

Code: Select all

<?php
$content['all'] = str_replace('href="#', 'href="'.rel_url().'#', $content['all']);
?>
Another solution can be JavaScript to handle this.