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

Multiple anchor selectors after page refresh #261

Closed
snickers2029 opened this issue Sep 21, 2017 · 1 comment
Closed

Multiple anchor selectors after page refresh #261

snickers2029 opened this issue Sep 21, 2017 · 1 comment

Comments

@snickers2029
Copy link

snickers2029 commented Sep 21, 2017

If you have an in-page link, after you click the link the url becomes /#doc?id=xyz
If you refresh the page, and click the link again, it trys to go to /#doc?id=xyz?id=xyz, and you will get this error:

    at s (https://unpkg.com/docsify@4.3.6/lib/docsify.min.js:1:838)
    at B (https://unpkg.com/docsify@4.3.6/lib/docsify.min.js:1:7611)
    at ne.e.$resetEvents (https://unpkg.com/docsify@4.3.6/lib/docsify.min.js:2:17877)
    at https://unpkg.com/docsify@4.3.6/lib/docsify.min.js:1:9865

This happens on chrome, but I guess it's not a browser issue. I guess, you just need to check the current url and get rid of the existing selector if present, before appending the new selector?

@laysent
Copy link
Contributor

laysent commented Oct 15, 2017

Hi @snickers2029, it should be fixed by #276 and has been published.

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

3 participants