custom redirects and override #371
Replies: 2 comments 8 replies
-
i solved the issue by editing line 162 and 158 .. changed it to $redirect_url = home_url('mypage') A suggestion for next version of the plugin... make this a configurable attribute in the settings page... hope this will be a useful info |
Beta Was this translation helpful? Give feedback.
-
I'm not quite clear on why someone would be logging in if it is a public area? The intention of the plugin for SSO when you go to the WordPress login form is that you are logging into the WordPress Dashboard. All of that aside have you tried using the That hook should allow you to send the users where you want them to go based on where their original redirect was set to. |
Beta Was this translation helpful? Give feedback.
-
Context:
(i) I am using keycloak for SSO
(ii) my wordpress website has both public and private areas
Current Behaviour:
(i) from public area if i click on sign in > sso login form > Keycloak authenticates> Redirects back to mydomain.in/wp-admin
(ii) if user tries to access private area of site > sso login form > Keycloack authenticates > Redirects back to mydomain.in/slug user was trying to access
Desired Behaviour:
(i) from public area if i click on sign in > sso login form > Keycloak authenticates> Redirects back to mydomain.in/mypage
not to wp-admin
What i have tried and failed:
(i) redirect code in functions php of child theme
(ii) redirect plugins (if i disable openid connect plugin, the redirect plugins work as expected)
(iii) both enabled and disabled states for default wordpress in openid connect settings (there is no change in behaviour)
(iv) tried custom redirect url option in the settings of openid connect (no change in behaviour)
Observation:
Openid connect settings overrides all other redirect for logged in users
how can i achieve this?
(i) from public area if i click on sign in > sso login form > Keycloak authenticates> Redirects back to mydomain.in/mypage
not to wp-admin
Is there a way to give custom redirect url other than pointing it to wp-admin on login?
thanks
Beta Was this translation helpful? Give feedback.
All reactions