Skip to content

Commit

Permalink
fix: external path for subfolder installs
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Dec 3, 2020
1 parent 64ac483 commit 458bfc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/helpers.js
Expand Up @@ -148,8 +148,8 @@ helpers.redirect = function (res, url, permanent) {
let redirectUrl;
// this is used by sso plugins to redirect to the auth route
if (url.hasOwnProperty('external')) {
redirectUrl = url.external;
url.external = encodeURI(url.external);
redirectUrl = res.local.isAPI ? relative_path + url.external : url.external;
url.external = encodeURI(redirectUrl);
} else {
redirectUrl = url;
url = encodeURI(url);
Expand Down

0 comments on commit 458bfc0

Please sign in to comment.