Created
October 14, 2015 04:57
-
-
Save cjmyles/538a63cdb4738dd141d3 to your computer and use it in GitHub Desktop.
Explicit base tag for IE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if IE]> | |
<script>document.write('<base href="' + window.location.protocol + '//' + window.location.host + '/" />');</script> | |
<![endif]--> | |
<![if !IE]> | |
<script>document.write('<base href="/" />');</script> | |
<![endif]> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment