In My Controller file.
@RequestMapping(value = "/login", method = RequestMethod.GET)
public String login() {
Subject currentUser = SecurityUtils.getSubject();
if (currentUser.isAuthenticated()) {
return "redirect:/account/center";
}
return "public/login";
}
After Then I login, and I input /login
in the location bar, and redirect the /account/center
.
But the url in the location bar show detail infomation.
eg:http://localhost:8080/account/center?controllerName=com.xxx.test.HomeController&controllerAction=login&controllerPath=%2Flogin
.
How to hide controllerName,controllerAction,controllerPath
in the redirect.