mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Fix go get response if only app URL is custom in configuration (#2634)
* Fix go get response if only app URL is custom in configuration * Rewrite to update Domain setting to match AppURL
This commit is contained in:
		@@ -194,7 +194,7 @@ func Contexter() macaron.Handler {
 | 
			
		||||
	</body>
 | 
			
		||||
</html>
 | 
			
		||||
`, map[string]string{
 | 
			
		||||
				"GoGetImport":    path.Join(setting.Domain, setting.AppSubURL, ctx.Link),
 | 
			
		||||
				"GoGetImport":    ComposeGoGetImport(ownerName, strings.TrimSuffix(repoName, ".git")),
 | 
			
		||||
				"CloneLink":      models.ComposeHTTPSCloneURL(ownerName, repoName),
 | 
			
		||||
				"GoDocDirectory": prefix + "{/dir}",
 | 
			
		||||
				"GoDocFile":      prefix + "{/dir}/{file}#L{line}",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user