Created
April 18, 2015 11:05
-
-
Save aurbano/59a7ed66078d95fcaa9f to your computer and use it in GitHub Desktop.
Add the hash to the url
This file contains hidden or 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
// Check if url includes #/ | |
if(window.location.hash.length < 1 || window.location.hash == ''){ | |
window.location = window.location.origin + window.location.pathname + '#/' + window.location.search; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment