Skip to content

Commit

Permalink
Update static_handler.go
Browse files Browse the repository at this point in the history
Signed-off-by: Sidhartha-Biswal <[email protected]>
  • Loading branch information
Sidhartha-Biswal authored Mar 12, 2024
1 parent b1b171a commit 566050d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/query/app/static_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (sH *StaticAssetsHandler) loggingHandler(handler http.Handler) http.Handler
// RegisterRoutes registers routes for this handler on the given router
func (sH *StaticAssetsHandler) RegisterRoutes(router *mux.Router) {
fileServer := http.FileServer(sH.assetsFS)
if sH.options.UIBasePath != "/" {
if sH.options.BasePath != "/" {
fileServer = http.StripPrefix(sH.options.BasePath+"/", fileServer)
}
router.PathPrefix("/static/").Handler(sH.loggingHandler(fileServer))
Expand Down

0 comments on commit 566050d

Please sign in to comment.