diff --git a/pkg/context/context.go b/pkg/context/context.go index 0b1ebbc71..1457b696a 100644 --- a/pkg/context/context.go +++ b/pkg/context/context.go @@ -255,7 +255,7 @@ func Contexter() macaron.Handler { `, map[string]string{ - "GoGetImport": path.Join(setting.Domain, setting.AppSubURL, c.Link), + "GoGetImport": path.Join(setting.Domain, setting.AppSubURL, repo.FullName()), "CloneLink": models.ComposeHTTPSCloneURL(ownerName, repoName), "GoDocDirectory": prefix + "{/dir}", "GoDocFile": prefix + "{/dir}/{file}#L{line}",