mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
UI: serve index.html if the requested file is not found in the assets bundle.
This commit is contained in:
+1
-1
@@ -104,7 +104,7 @@ func (h redirectHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
// '/rpc' is redirected to 'locationPrefix/rpc'
|
||||
// '/login' is redirected to 'locationPrefix/login'
|
||||
switch r.URL.Path {
|
||||
case "/", "/rpc", "/login":
|
||||
case "/", "/rpc", "/login", "/favicon.ico":
|
||||
location := h.locationPrefix + r.URL.Path
|
||||
// Redirect to new location.
|
||||
http.Redirect(w, r, location, http.StatusTemporaryRedirect)
|
||||
|
||||
Reference in New Issue
Block a user