Consider a request "http://localhost:gatewayport/myapp" where I want to redirect the request to "http://localhost:appport/" This works ok except that the images, styles hosted on myapp are requested as "http://localhost:gatewayport/image.gif" (without the "/myapp") context and hence they don't load. Tried adding redirect filter (302) by redirecting to /myapp/ but that goes in a loop
routeBuilder.route(
p ->
p.path("/myapp")
.filters(
f ->
f.redirect(302, "/myapp/"))
.uri("lb://gatewayserver"));