cloudcms-server 3.2.310 → 3.2.311
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -813,7 +813,31 @@ exports = module.exports = function()
|
|
|
813
813
|
}
|
|
814
814
|
redirectUrl += "requested_url=" + requested_url;
|
|
815
815
|
|
|
816
|
-
|
|
816
|
+
res.status(200);
|
|
817
|
+
res.type("text/html");
|
|
818
|
+
|
|
819
|
+
// serve back a redirect via html
|
|
820
|
+
var html = " \
|
|
821
|
+
<html> \
|
|
822
|
+
<head> \
|
|
823
|
+
<script> \
|
|
824
|
+
var _redirectUrl = '" + redirectUrl + "'; \
|
|
825
|
+
var hash = window.location.hash ? window.location.hash : ''; \
|
|
826
|
+
if (hash && hash.indexOf('#') === 0) { \
|
|
827
|
+
hash = hash.substring(1); \
|
|
828
|
+
} \
|
|
829
|
+
if (hash) { \
|
|
830
|
+
_redirectUrl += '&requested_hash=' + hash; \
|
|
831
|
+
} \
|
|
832
|
+
window.location.href = _redirectUrl; \
|
|
833
|
+
</script> \
|
|
834
|
+
</head> \
|
|
835
|
+
</html> \
|
|
836
|
+
";
|
|
837
|
+
res.send(html);
|
|
838
|
+
return;
|
|
839
|
+
|
|
840
|
+
//return res.redirect(redirectUrl);
|
|
817
841
|
}
|
|
818
842
|
else if (loginHandler)
|
|
819
843
|
{
|