Question

I am creating single page application using marionette.js.My url looks like when user clicks on privacy is http://192.168.1.4:8080/Client_bit/index.html#privacy I am trying to make SEO freindly urls like http://192.168.1.4:8080/Client_bit/index.html/privacy is it possible with marionette.js?

Was it helpful?

Solution

Yes, and it's done the same way as Backbone: you simply start the router with pushState: true (see http://backbonejs.org/#History-start)

However, make sure your webserver returns a valid page for EVERY URL your marionette app generates, or pushState won't work...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top