commit
eb43ad517d
2 changed files with 3 additions and 3 deletions
|
@ -678,7 +678,7 @@ def redirect_to_repository(namespace_name, repo_name, tag_name):
|
||||||
|
|
||||||
if permission.can() or is_public:
|
if permission.can() or is_public:
|
||||||
repo_path = '/'.join([namespace_name, repo_name])
|
repo_path = '/'.join([namespace_name, repo_name])
|
||||||
return redirect(url_for('web.repository', path=repo_path, tag=tag_name))
|
return redirect(url_for('web.repository', path=repo_path, tab="tags", tag=tag_name))
|
||||||
|
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,8 @@ def repository_tag_reference(repository_path_and_tag):
|
||||||
if not owner:
|
if not owner:
|
||||||
return tag
|
return tag
|
||||||
|
|
||||||
return """<a href="%s/repository/%s/%s?tag=%s">%s</a>""" % (get_app_url(), namespace, repository,
|
return """<a href="%s/repository/%s/%s?tag=%s&tab=tags">%s</a>""" % (get_app_url(), namespace,
|
||||||
tag, tag)
|
repository, tag, tag)
|
||||||
|
|
||||||
def repository_reference(pair):
|
def repository_reference(pair):
|
||||||
if isinstance(pair, tuple):
|
if isinstance(pair, tuple):
|
||||||
|
|
Reference in a new issue