I have a spring controller which does a forward to a static html page index.html
The browser url display :
http://localhost:8080/app/type/static/name
Controller when gets this forwards:
return "forward:/static/pages/index.html";
The index page is located at:
webapp->static->pages->index.html
and the css is located at:
webapp->static->pages->css->style.css
when the url loads, it cant find the css file, looking in debugger
http://localhost:8080/app/type/static/pages/css/style.css
the url needs to be
http://localhost:8080/app/static/pages/css/style.css
I cant hard code this as the port can change? how can i do this?