FIX Parameter tokens now redirect to correct url if mod_rewrite is off

This commit is contained in:
Daniel Hensby 2016-03-18 15:56:39 +00:00
parent ba8f984940
commit add2ecdf8b

View File

@ -191,8 +191,8 @@ class ParameterConfirmationToken {
$_SERVER['HTTP_HOST'],
// SilverStripe base
self::$alternateBaseURL !== null ? self::$alternateBaseURL : BASE_URL,
// And URL
$url
// And URL including base script (eg: if it's index.php/page/url/)
(defined('BASE_SCRIPT_URL') ? '/' . BASE_SCRIPT_URL : '') . $url,
));
// Join together with protocol into our current absolute URL, avoiding duplicated "/" characters