I am fetching photo Albums from iOS. Photo albums have local identifiers, such as
My app has URLs such as
The extra slashes in the URL confuse Iron Router into thinking that there are three variable parameters, not one. Therefore, when I try to route it to
'/albums/:id', it complains.
I could do
/albums/:id/:id2/:id3, but being new to iOS, I don’t know if all
local Idendifiers have the same format and whether it’s future-proof (btw, does anyone know what
So, what’s the generic way to accept one parameter with variable number of dashes in it?
Also, is it a good practice to do what I am doing?