added redirect

This commit is contained in:
Matthias Hannig 2018-12-10 10:46:28 +01:00
parent 76b97a2364
commit a740c5ea99

View File

@ -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
}