Skip to content

Commit 520681f

Browse files
committed
On auth-success redirect with trailing slash
1 parent 19ed27f commit 520681f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/eu/openanalytics/containerproxy/ui/AuthController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public Object getLoginPage(@RequestParam Optional<String> error, ModelMap map) {
7777
@RequestMapping(value = AUTH_SUCCESS_URL, method = RequestMethod.GET)
7878
public String authSuccess(ModelMap map, HttpServletRequest request) {
7979
prepareMap(map);
80-
map.put("url", ServletUriComponentsBuilder.fromCurrentContextPath().build().toUriString()); // default url
80+
map.put("url", ServletUriComponentsBuilder.fromCurrentContextPath().path("/").build().toUriString()); // default url
8181

8282
Object redirectUrl = request.getSession().getAttribute(AUTH_SUCCESS_URL_SESSION_ATTR);
8383
if (redirectUrl instanceof String sRedirectUrl) {

0 commit comments

Comments
 (0)