Last active
November 16, 2019 17:20
-
-
Save johnsoncodehk/77dcdd983c0c7234cd83408601148ce3 to your computer and use it in GitHub Desktop.
Remove URL trailing slash
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
window.history.replaceState("", "", window.location.href.replace(new RegExp("/(?!.*/)"), "")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment