Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL without hash #2341

Open
jkbkam opened this issue Mar 8, 2019 · 1 comment
Open

URL without hash #2341

jkbkam opened this issue Mar 8, 2019 · 1 comment

Comments

@jkbkam
Copy link

jkbkam commented Mar 8, 2019

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

@danielbeeke
Copy link

   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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants