reveal.js
reveal.js copied to clipboard
URL without hash
Hi everyone, is there any opportunity to make an url without #? For example i have: www.mypage.com/blabla#/slideNumber but i want: www.mypage.com/blabla/slideNumber thanks for your time
const originalReplaceState = history.replaceState
history.replaceState = (_a, _b, url) => {
url = url.toString().replace('#', '/' + identifier)
originalReplaceState.bind(history)(_a, _b, url)
}
With this the hash is removed. I haven't tested this very much.