Skip Navigation
Expand
Is it possible to remove the <base> tag from the pages of the customer portal?
Answer ID 10142   |   Last Review Date 03/18/2019

Is it possible to remove the <base> tag from the pages of the customer portal?

Environment:

Customer Portal, All supported versions

Resolution:

Unfortunately, the <base> tag is not removable because it is injected in the customer portal core code.
 
On the page that's rendered, if you set the template as "standard.php", the Developer mode <base> tag will be rendered as:
 
    <base href='<BASE-URL>/euf/assets/themes/standard/'>
 
And if you set the template as "mobile.php", then the same will be generated as:
 
    <base href='<BASE-URL>/euf/assets/themes/mobile/'>
 
An alternate option to this is to use the absolute paths when you are inserting your resources in the customer portal.
 
"The <base> tag specifies the base URL/target for all relative URLs in a document.

There can be at maximum one <base> element in a document, and it must be inside the <head> element."