Skip to content

Commit

Permalink
Strip off '/custom/' path when using custom templates for styling #76
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Nov 17, 2023
1 parent ea1d5b6 commit 3de5972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/webserver/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func Start(errChan chan<- error) error {

if config.Values().MFATemplatesDirectory != "" {
fs := http.FileServer(http.Dir(path.Join(config.Values().MFATemplatesDirectory, "static")))
tunnel.Handle("/custom/", fs)
tunnel.Handle("/custom/", http.StripPrefix("/custom/", fs))
}

tunnel.HandleFunc("/static/", embeddedStatic)
Expand Down

0 comments on commit 3de5972

Please sign in to comment.