Last active
December 11, 2017 09:32
-
-
Save smilecc/c753ee0b42595d8792c9542c5ec0757a to your computer and use it in GitHub Desktop.
Redirect to .html
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
var extPos = window.location.href.lastIndexOf('.html'); | |
if (extPos === -1 || extPos !== window.location.href.length - 5) { | |
window.location.href = window.location.href + '.html' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment