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