Skip to content

Commit

Permalink
redirect update
Browse files Browse the repository at this point in the history
  • Loading branch information
alpa-coder committed Feb 15, 2019
1 parent 10523d4 commit 05b384b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public ModelAndView redirectToHereAfterProfileLink(Principal principal,
@RequestParam(value = "redirectUrl", required = false) String redirectUrl) {
profileService.userProviderIdentityLinked(principal, Provider.fromString(provider));

if (StringUtils.isNotBlank(redirectUrl) && !redirectUrl.toLowerCase().contains("/profile/link/" + provider)) {
if (StringUtils.isNotBlank(redirectUrl) && !redirectUrl.toLowerCase().contains("/profile/link/")) {
return new ModelAndView(new RedirectView(redirectUrl));
}
return redirectToProfile();
Expand Down

0 comments on commit 05b384b

Please sign in to comment.