mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: external path for subfolder installs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user