cldoc icon indicating copy to clipboard operation
cldoc copied to clipboard

Backspace

Open mrquincle opened this issue 9 years ago • 3 comments

This issue I post with some hesitation. In our documentation the backspace doesn't work consistently. You can check the behavior at http://dobots.github.io/bluenet/. So, after clicking on a class, and then the backspace the URL is updated to http://dobots.github.io/bluenet/, but the page itself doesn't get refreshed.

However, I'm not entirely certain if this the case with every website generated by cldoc...

mrquincle avatar Feb 23 '15 15:02 mrquincle

Yes, I have noticed this issue as well. It should be a general issue with cldoc.

jessevdk avatar Mar 29 '15 15:03 jessevdk

I notice this specifically when the navigation was from the no-fragment case to the with-fragment case. Example:

  • http://localhost:6060/
  • http://localhost:6060/#etl/etl
  • Back.
  • URL bar reads http://localhost:6060/
  • Whatever you're using to be notified of fragment changes doesn't apparently get called.

cbiffle avatar Jul 13 '15 17:07 cbiffle

I think this could be handled in the popstate event. If e.originalEvent.state is undefined, it should be safe to load the main index page, since no state is ever pushed for that page.

I'm also seeing what looks like a related issue which I can't figure out, but it only affects sites I build myself, not the online example so it may be a configuration issue on my end (but it does affect the example site if I build it myself): if I navigate through two or more links, when I hit the Back button in my browser, the most recent page is skipped, and a page from earlier in the history is loaded (although the URL bar displays the correct page).

noirb avatar Mar 27 '16 16:03 noirb