I ve done some researches but couldn't find any question or answer that could help me,
so my probleme is as below :
I have a controller that redirects to an external link :
@controller("person")
publi class PersonController(){
@RequestMapping(value="redirect",method=RequestMethod.POST)
public String redirectToExternalLink(params...){
String url = "https://externalHost.com/doSomthing";
response.sendRedirect(url);
}
}
after going through this method, I find my self face to a 404 error Page not Found, when I check the link I ve been redrected to I find :
www.mydomainName.com/doSomthing
As you can see, the external domain name is replaced by mine, I ve tried also this :
response.setHeader("Location",url);
response.sendRedirect(url);
same issue.
is it a configuration that I should do on tomcat ? or there is a way to solve it ?
thanks