Skip to content

Commit 984c0ae

Browse files
committed
add comment about the redirect
1 parent e22aedf commit 984c0ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/repo/release.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ func Releases(ctx *context.Context) {
199199

200200
// TagsList render tags list page
201201
func TagsList(ctx *context.Context) {
202+
// The tag list page will be enabled only when user cannot visit releases page.
202203
if ctx.Repo.CanRead(unit.TypeReleases) {
203204
ctx.Redirect(fmt.Sprintf("%s/releases", ctx.Repo.RepoLink))
204205
return

0 commit comments

Comments
 (0)