Spring: ModelAndView redirect issue with secured URL (https)
Hi,
I ve tried redirecting to a specific URL (not a View) using the below two methods
1) return new ModelAndView("redirect:/profile/?action=sitereg&sitekey="+ sitekey +"&user_locale=" + locale + "&redirect=" + redirect);
2) return new ModelAndView(new RedirectView("/profile/?action=sitereg&sitekey="+ sitekey +"&user_locale=" + locale + "&redirect=" + redirect));
Both ways of redirection works fine for Non-Secured requests (http). ie after redirection i get a URL similar to
http://DomainURL/profile/?action=sit..._140&redirect=
But when i use secured request(https), after redirection i get a URL similar to
https://DomainURL/prosfile/?action=sitereg&sitekey=12178075&user_locale=es_ES _140&redirect=
ie the word "profile" changes to "prosfile".
Can any one please tell me if i am missing something here?
Best Regards