http - URL parameters and backbone routing -


backbone.js maintains routing information in url after hash mark, e.g.:

http://localhost:3000#page/hardware/table/?action=details&actiontargetid=5&actiontargetname=10.3.177.185&actiontarget=host 

even though routing information in format ?p1=v1&p2=v2&p3=v3, portion not technically part of url query string since comes after hash mark.

my question if add actual query string our app's urls this:

http://localhost:3000?newparam=newvalue#page/hardware/table/?action=details&actiontargetid=5&actiontargetname=10.3.177.185&actiontarget=host 

is there possibility of "newparam" url parameter interfering backbone portion?

the problem not creating legit query string. mixing route parameters.

your example formatted as: domain ? param # route ? other params

as questionmark appears in url after interpreted query string. (in case) route.

personally suggest using html5 pushstate.

backbone.history.start({pushstate: true})

this give clean(er) urls

http://localhost:3000/page/hardware/table/?newparam=newvalue&action=details&actiontargetid=5&actiontargetname=10.3.177.185&actiontarget=host

that routes not interfere parameters.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -