Trim BaseURL
Former-commit-id: 10a2dcf7a277693d7f23419dde16715b8b3ab67d [formerly c0645b792ed36d75b76442016596d3086d23236a] [formerly a605776b898544c9034b05b240249afc515d8c91 [formerly 6bce6fb5849b4b7f1816d8e83a80dbc575aa420c]] Former-commit-id: deb481fbc32d90688fa9399f1f63f002d1008087 [formerly f7f130563c33d12ef0ff416a572d97f1b70101fb] Former-commit-id: f51b7316471d625380cd711d1c783ca9478a77dd
This commit is contained in:
@@ -14,7 +14,7 @@ const assetsURL = "/_internal"
|
||||
// Serve provides the needed assets for the front-end
|
||||
func serveAssets(ctx *requestContext, w http.ResponseWriter, r *http.Request) (int, error) {
|
||||
// gets the filename to be used with Assets function
|
||||
filename := strings.Replace(r.URL.Path, ctx.FileManager.BaseURL+assetsURL, "", 1)
|
||||
filename := strings.TrimPrefix(r.URL.Path, assetsURL)
|
||||
|
||||
var file []byte
|
||||
var err error
|
||||
|
||||
Reference in New Issue
Block a user