Fix index.html root path forwarding
Fix automatic '/' -> 'index.html' forwarding to also work when a `server.servlet-path` property is set. Fixes gh-2351
This commit is contained in:
@@ -281,7 +281,7 @@ public class WebMvcAutoConfiguration {
|
||||
// Ignore
|
||||
}
|
||||
// Use forward: prefix so that no view resolution is done
|
||||
registry.addViewController("/").setViewName("forward:/index.html");
|
||||
registry.addViewController("/").setViewName("forward:index.html");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user