Unified link creation. (#15619)

This commit is contained in:
KN4CK3R 2021-04-30 19:25:13 +02:00 committed by GitHub
parent 1456978246
commit c80d7f33b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 27 additions and 24 deletions

View file

@ -234,7 +234,7 @@ func MigratePost(ctx *context.Context) {
err = task.MigrateRepository(ctx.User, ctxUser, opts)
if err == nil {
ctx.Redirect(setting.AppSubURL + "/" + ctxUser.Name + "/" + opts.RepoName)
ctx.Redirect(ctxUser.HomeLink() + "/" + opts.RepoName)
return
}