reveal.js icon indicating copy to clipboard operation
reveal.js copied to clipboard

URL without hash

Open jkbkam opened this issue 6 years ago • 1 comments

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

jkbkam avatar Mar 08 '19 06:03 jkbkam

   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.

danielbeeke avatar Feb 07 '22 20:02 danielbeeke