Created
May 8, 2024 06:45
-
-
Save renatofrota/ed020380f84ad456b4db2221f75d146e to your computer and use it in GitHub Desktop.
Adianti Framework SPA (Single Page Application)
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
Adianti.registerState = false; | |
if (typeof history.replaceState != 'undefined') { | |
var baseurl = window.location.pathname.replace(/index\.php.*/,''); | |
var stateObj = { url: baseurl }; | |
history.replaceState(stateObj, '', baseurl); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment