Fix namespace links that end in slashes
This commit is contained in:
parent
624258400d
commit
58e6a17373
1 changed files with 4 additions and 0 deletions
|
@ -80,12 +80,14 @@ def not_found_error_display(e = None):
|
|||
return resp
|
||||
|
||||
@web.route('/organization/<path:path>', methods=['GET'])
|
||||
@web.route('/organization/<path:path>/', methods=['GET'])
|
||||
@no_cache
|
||||
def org_view(path):
|
||||
return index('')
|
||||
|
||||
|
||||
@web.route('/user/<path:path>', methods=['GET'])
|
||||
@web.route('/user/<path:path>/', methods=['GET'])
|
||||
@no_cache
|
||||
def user_view(path):
|
||||
return index('')
|
||||
|
@ -757,6 +759,7 @@ def attach_custom_build_trigger(namespace_name, repo_name):
|
|||
|
||||
|
||||
@web.route('/<repopath:repository>')
|
||||
@web.route('/<repopath:repository>/')
|
||||
@no_cache
|
||||
@process_oauth
|
||||
@parse_repository_name(include_tag=True)
|
||||
|
@ -809,6 +812,7 @@ def redirect_to_repository(namespace_name, repo_name, tag_name):
|
|||
|
||||
|
||||
@web.route('/<namespace>')
|
||||
@web.route('/<namespace>/')
|
||||
@no_cache
|
||||
@process_oauth
|
||||
@anon_protect
|
||||
|
|
Reference in a new issue