Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top