Fix empty base path when forwarding to index page (#1874)

Signed-off-by: Roman Zabaluev <rzabaluev@provectus.com>

Co-authored-by: Ilya Kuramshin <ilia-2k@rambler.ru>
This commit is contained in:
Roman Zabaluev 2022-04-22 03:51:49 +04:00 committed by GitHub
parent aab1f5cea4
commit dbc5d0445c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ public class CustomWebFilter implements WebFilter {
final String path = exchange.getRequest().getPath().pathWithinApplication().value();
if (path.startsWith("/ui") || path.equals("/")) {
if (path.startsWith("/ui") || path.equals("") || path.equals("/")) {
return chain.filter(
exchange.mutate().request(
exchange.getRequest().mutate()