docsify icon indicating copy to clipboard operation
docsify copied to clipboard

Multiple anchor selectors after page refresh

Open snickers2029 opened this issue 9 years ago • 1 comments

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/[email protected]/lib/docsify.min.js:1:838)
    at B (https://unpkg.com/[email protected]/lib/docsify.min.js:1:7611)
    at ne.e.$resetEvents (https://unpkg.com/[email protected]/lib/docsify.min.js:2:17877)
    at https://unpkg.com/[email protected]/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?

snickers2029 avatar Sep 21 '17 19:09 snickers2029

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

laysent avatar Oct 15 '17 12:10 laysent