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

Setting to ignore route if from back & external page? #73

Open
mellinger opened this issue Apr 10, 2013 · 1 comment
Open

Setting to ignore route if from back & external page? #73

mellinger opened this issue Apr 10, 2013 · 1 comment

Comments

@mellinger
Copy link

Awesomely useful plugin, but I'm in a bit of a bind with this scenario:

  1. Server can render pages identically to the ones rendered by the client.
  2. Lots of links to external pages that are outside of Davis.js
  3. User clicks on an external page link, hits back, server renders the page properly then Davis.js triggers a route and re-renders it a second time.

Any ideas for getting Davis.js to recognize this situation and not route?

Any help would be appreciated!
Max

@mellinger
Copy link
Author

OK, researched the issue further and realized it's a result of the whole "webkit firing pop state on page load" issue. I fixed it by disabling actions on pop, which works in my case. I also tried setting generateRequestOnPageLoad = false, but that didn't seem to have an effect. Weird?

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

1 participant