문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top