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?
			
			
									
						
										
						Empty base tag causing issues
- Oliver Georgi
 - Site Admin
 - Posts: 9937
 - Joined: Fri 3. Oct 2003, 22:22
 - Location: Dessau-Roßlau
 - Contact:
 
Re: Empty base tag causing issues
you cannot use an empty base tag.
A solution can be to use a frontend render in a way like this:
Another solution can be JavaScript to handle this.
			
			
									
						
										
						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']);
?>