We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64034cc commit 0b869d3Copy full SHA for 0b869d3
1 file changed
onelogin-saml-sso/php/functions.php
@@ -144,7 +144,10 @@ function saml_sso() {
144
wp_redirect(home_url());
145
exit();
146
}
147
- if (isset($_SERVER['REQUEST_URI']) && !isset($_GET['saml_sso'])) {
+
148
+ if (isset($_GET["target"])) {
149
+ $auth->login($_GET["target"]);
150
+ } else if (isset($_SERVER['REQUEST_URI']) && !isset($_GET['saml_sso'])) {
151
$auth->login($_SERVER['REQUEST_URI']);
152
} else {
153
$auth->login();
0 commit comments