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

Backspace #84

Open
mrquincle opened this issue Feb 23, 2015 · 3 comments
Open

Backspace #84

mrquincle opened this issue Feb 23, 2015 · 3 comments

Comments

@mrquincle
Copy link

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...

@jessevdk
Copy link
Owner

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

@cbiffle
Copy link

cbiffle commented Jul 13, 2015

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.

@noirb
Copy link

noirb commented Mar 27, 2016

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).

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

4 participants