Running backbone app on different URLs

42 views Asked by At

Is it possible for the backbone router to recognize that the URL it is running on is different?

I need the behavior of the app to change before the hash-bangs.

/members#login

vs

/members/benefits#about (Need the app to behave differently here)

1

There are 1 answers

0
T J On

If you want to control behavior of the app depending on the url that is not part of hash, you should use pushState. Otherwise backbone router only deals with the part after hash. In that case you can implement the logic yourself.