modify url fix to work with params with more than 2 vals
Merge pull request #1165 from dimagi/url-fix

modify url fix to work with params with more than 2 vals