add missing protocol for redirect
This commit is contained in:
parent
d3ef9fb032
commit
47de49e7e2
|
@ -19,6 +19,7 @@ module.exports.scrubTheDub = function (req, res, redirectives) {
|
|||
if (!newLocation) {
|
||||
return false;
|
||||
}
|
||||
newLocation = 'http://' + newLocation;
|
||||
} else {
|
||||
newLocation = 'https://' + hostname.replace(/^www\./, '');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue