backbone.js - Browser history not maintained when using backbone history with hashchange -


I am using a backbone for a backbone / flask app. History To keep a history of a specific page, and I am using parts of the flask to route through other parts of the app

A standard user flows through my application like this Will be:

  1. Load page / location ; The / location page is served by the flask and does not contain much javascript, it just shows a few buttons.
  2. The user clicks on a button and it is called / room / ; The application then handles the routing on this page, and returns an html page with backbone application.
  3. When this page loads, I call backbone.index.start.start () and I will register some routes that are controlled by the Backbone app on this page. should go.

Now, when a user goes to many of these routes, and then clicks the browser's back button, the browser should only / room / page the backbone application will only be back to the first route loaded by the app even though I have the / location page to / room / before coming to the / chart page.

How can I work for backbone history so that it works for browsers managed by backbone apps and pages managed by browsers before . Backbone.history was started?


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -