mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
cdedee130a
@ -191,8 +191,8 @@ class ParameterConfirmationToken {
|
|||||||
$_SERVER['HTTP_HOST'],
|
$_SERVER['HTTP_HOST'],
|
||||||
// SilverStripe base
|
// SilverStripe base
|
||||||
self::$alternateBaseURL !== null ? self::$alternateBaseURL : BASE_URL,
|
self::$alternateBaseURL !== null ? self::$alternateBaseURL : BASE_URL,
|
||||||
// And URL
|
// And URL including base script (eg: if it's index.php/page/url/)
|
||||||
$url
|
(defined('BASE_SCRIPT_URL') ? '/' . BASE_SCRIPT_URL : '') . $url,
|
||||||
));
|
));
|
||||||
|
|
||||||
// Join together with protocol into our current absolute URL, avoiding duplicated "/" characters
|
// Join together with protocol into our current absolute URL, avoiding duplicated "/" characters
|
||||||
|
Loading…
Reference in New Issue
Block a user