Created
June 27, 2017 15:08
-
-
Save BumbuKhan/1cc9e3f8c2451559a54313786d3fd9a3 to your computer and use it in GitHub Desktop.
Angular-cordova routing cure
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
<script> | |
var baseHref = window.location.href.split('/'); | |
baseHref.pop(); | |
document.write('<base href="' + baseHref.join('/') + '/" />'); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment