Disambiguate browse URL regexps
Numerous URL regexps defined in browse web application are ambiguous, especially those taking an an origin_url
argument
plus other ones. For instance, those urls should not return a 404:
- https://archive.softwareheritage.org/browse/origin/http://snapshot.debian.org/package/texlive-extra//directory/texmf-dist/tex/latex/directory/
- https://archive.softwareheritage.org/browse/origin/http://git.savannah.gnu.org/git/directory/opt/
- https://archive.softwareheritage.org/browse/origin/https://github.com/visit/CBIS.WriteAPI.Client/directory/
Those problematic URL regexps must be disambiguated. Using query parameters instead of url arguments should help resolve the issues. Backward compatibility with the previously defined URL scheme should also be maintained.
Migrated from T2135 (view on Phabricator)