Merge pull request #5200 from dhensby/pulls/fix-token-redirect

FIX Parameter tokens now redirect to correct url if mod_rewrite is off
This commit is contained in:
Damian Mooyman 2016-03-21 14:45:03 +13:00
commit cdedee130a

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