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:
commit
491b9c8278
1 changed files with 4 additions and 0 deletions
|
@ -80,12 +80,14 @@ def not_found_error_display(e = None):
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
@web.route('/organization/<path:path>', methods=['GET'])
|
@web.route('/organization/<path:path>', methods=['GET'])
|
||||||
|
@web.route('/organization/<path:path>/', methods=['GET'])
|
||||||
@no_cache
|
@no_cache
|
||||||
def org_view(path):
|
def org_view(path):
|
||||||
return index('')
|
return index('')
|
||||||
|
|
||||||
|
|
||||||
@web.route('/user/<path:path>', methods=['GET'])
|
@web.route('/user/<path:path>', methods=['GET'])
|
||||||
|
@web.route('/user/<path:path>/', methods=['GET'])
|
||||||
@no_cache
|
@no_cache
|
||||||
def user_view(path):
|
def user_view(path):
|
||||||
return index('')
|
return index('')
|
||||||
|
@ -757,6 +759,7 @@ def attach_custom_build_trigger(namespace_name, repo_name):
|
||||||
|
|
||||||
|
|
||||||
@web.route('/<repopath:repository>')
|
@web.route('/<repopath:repository>')
|
||||||
|
@web.route('/<repopath:repository>/')
|
||||||
@no_cache
|
@no_cache
|
||||||
@process_oauth
|
@process_oauth
|
||||||
@parse_repository_name(include_tag=True)
|
@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>')
|
||||||
|
@web.route('/<namespace>/')
|
||||||
@no_cache
|
@no_cache
|
||||||
@process_oauth
|
@process_oauth
|
||||||
@anon_protect
|
@anon_protect
|
||||||
|
|
Reference in a new issue