added redirect
This commit is contained in:
parent
76b97a2364
commit
a740c5ea99
@ -86,5 +86,11 @@ func webRegisterAssets(ui UiConfig, router *httprouter.Router) error {
|
||||
})
|
||||
}
|
||||
|
||||
// ...install a catch all for /alice for graceful backwards compatibility
|
||||
router.GET("/alice/*path",
|
||||
func(res http.ResponseWriter, req *http.Request, _ httprouter.Params) {
|
||||
http.Redirect(res, req, "/", 301)
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user