I have a url with this pattern:
('^(?i)somewhere/(\d+)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/$', somewherePage),
where it should get the url for example:
http://foo.com/somewhere/1337/foo/params/that/are//maybe///used/
Please note that some of the parameters are missing and lead to //. This stopped working, and instead of the correct url, I get something like:
http://foo.com/somewhere/1337/foo/params/that/are/maybe/used/
where the required slashes are missing and my pattern is then not recognized. I think this may be caused by what my apache web server does, but I don't understand how to figure it out.
My question is how can I stop the removal of extra slashes or is there another solution for the dynamic number of parameters. Also this code worked fine, but its meaning was stopped. I'm not sure what has changed since the code base is outdated, but I know that this way of passing a variable number of parameters worked.
source share