Node.js based forum software built for the modern web
fix: external path for subfolder installs
Barış Soner Uşaklı458bfc0faf35
diff --git a/src/controllers/helpers.js b/src/controllers/helpers.jsindex 28e53a5914..bd561ab169 100644--- a/src/controllers/helpers.js+++ b/src/controllers/helpers.js@@ -148,8 +148,8 @@ helpers.redirect = function (res, url, permanent) {let redirectUrl;// this is used by sso plugins to redirect to the auth routeif (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);