Commit cdf785a8 authored by Phillip Webb's avatar Phillip Webb

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
parent 0484e5cb
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment