Fixed URL assembly

This commit is contained in:
Josh Sherman 2016-02-13 18:14:26 -05:00
parent cab76fa0b4
commit f707f6084e

View file

@ -28,12 +28,12 @@ class Redirect
|| $_SERVER['HTTPS'] == 'off'
|| $_SERVER['HTTPS'] == ''
) {
$destination = 'http';
$protocol = 'http';
} else {
$destination = 'https';
$protocol = 'https';
}
$destination .= '://' . $_SERVER['HTTP_HOST'] . $destination;
$destination = $protocol . '://' . $_SERVER['HTTP_HOST'] . $destination;
}
if ($permanent) {