How to disable Backbone.js routing when loading the start page

I know that best practices say that "your content should be accessible when the page loads," and I did it like that. If the user goes to /questionnaire/info/id/2 , PHP executes the full HTML code. But the problem occurs after this point, backbone.js corresponds to the same route and re-requests the same page and loads it with ajax.

How to disable the base station for the first page load?

+7
source share
1 answer

I have found the answer. Just run the story with silent: true parameter:

 Backbone.history.start({pushState: true, silent: true}); 
+8
source

All Articles