We have added support for namespaced projects in pagure and we need to
support hosting documentation for them but we have been using the
following route:
@APP.route('//')
This means that we are unable to distinguish between:
/repo/folder/file
and
/namespace/repo/file
This commit fixes that by introducing a forced f/ in the url in
between the stable part (repo, namespace/repo) and the dynamique one
(folder/file).
This break existing URLs pointing to specific parts of the documentation
but not URLs pointing to the top level.
This commit also adjusts the unit-tests accordingly.
We have added support for namespaced projects in pagure and we need to/')
support hosting documentation for them but we have been using the
following route:
@APP.route('/
This means that we are unable to distinguish between:
/repo/folder/file
and
/namespace/repo/file
This commit fixes that by introducing a forced
f/in the url inbetween the stable part (repo, namespace/repo) and the dynamique one
(folder/file).
This break existing URLs pointing to specific parts of the documentation
but not URLs pointing to the top level.
This commit also adjusts the unit-tests accordingly.