simonmcmanus / url-builder

Build urls based on a url template (as used by express and restify) from an object, when the params are not specified in the tempalte they are added as query params
3 stars 1 forks source link

same param twice #1

Closed simonmcmanus closed 10 years ago

simonmcmanus commented 10 years ago

given the url:

abc/:id

and the params:

{id: 123}

sometimes it produces

abc/123?id=123

This only happens on GETS and not every time.

simonmcmanus commented 10 years ago

We could remove items from the params as they are added to avoid duplication

simonmcmanus commented 10 years ago

we could check the tokens using the same id in the original url.