mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-07 03:58:09 -05:00
fix(static): Correct the API_URL value to replace in index.html
This commit is contained in:
@@ -118,7 +118,7 @@ func serveIndexFile(c *echo.Context, assetFs http.FileSystem) (err error) {
|
||||
publicURL = "/"
|
||||
}
|
||||
|
||||
scriptConfigString = strings.ReplaceAll(scriptConfigString, "'http://localhost:3456/api/v1'", "'"+publicURL+"api/v1'")
|
||||
scriptConfigString = strings.ReplaceAll(scriptConfigString, "'/api/v1'", "'"+publicURL+"api/v1'")
|
||||
}
|
||||
|
||||
reader := strings.NewReader(scriptConfigString)
|
||||
|
||||
Reference in New Issue
Block a user