From 6dd27f5429b5494a9feebbfad9ef691d3cc92863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20Cesar=20Laura=20Avenda=C3=B1o?= Date: Tue, 5 Nov 2019 12:06:23 -0400 Subject: [PATCH] PMC-1235 --- workflow/engine/src/ProcessMaker/Services/OAuth2/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/engine/src/ProcessMaker/Services/OAuth2/Server.php b/workflow/engine/src/ProcessMaker/Services/OAuth2/Server.php index 35c237003..5cacadc1b 100644 --- a/workflow/engine/src/ProcessMaker/Services/OAuth2/Server.php +++ b/workflow/engine/src/ProcessMaker/Services/OAuth2/Server.php @@ -181,7 +181,7 @@ class Server implements iAuthenticate if (! isset($_SESSION['USER_LOGGED'])) { $http = \G::is_https() ? 'https' : 'http'; $host = $http . '://' . $_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] != '80' ? ':' . $_SERVER['SERVER_PORT'] : ''); - $redirect = urlencode($host.'/'.self::$workspace.$_SERVER['REQUEST_URI']); + $redirect = urlencode('/'.self::$workspace.$_SERVER['REQUEST_URI']); $loginLink = sprintf('%s/sys%s/%s/%s/login/login?u=%s', $host, config("system.workspace"), SYS_LANG, SYS_SKIN, $redirect); header('location: ' . $loginLink);