-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Turbolinks.visit(window.location.href.substr(0, window.location.href.indexOf('#')))
or
Turbolinks.visit(window.location.href.split('#')[0])
https://stackoverflow.com/questions/1397329/how-to-remove-the-hash-from-window-location-url-with-javascript-without-page-r
https://www.sqlpac.com/en/documents/javascript-listing-active-event-listeners.html
or
history.replaceState(null, null, ' ');
history.pushState(null, null, ' ')
history.replaceState({}, document.title, "."); // replace / with . to keep url
history.replaceState({}, document.title, location.href.substr(0, location.href.length-location.hash.length))
if(window.history.pushState) {
window.history.pushState('', '/', window.location.pathname)
} else {
window.location.hash = '';
}
Metadata
Metadata
Assignees
Labels
No labels