Merge pull request #2872 from coreos-inc/joseph.schorr/QS-12/fix-org-links

Fix namespace links that end in slashes
This commit is contained in:
josephschorr 2017-09-29 13:03:10 -04:00 committed by GitHub
commit 491b9c8278

View file

@ -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