From c517dbfe0478677326aedb4db9d310570fecf4b7 Mon Sep 17 00:00:00 2001 From: Roman Schmid Date: Tue, 11 Oct 2016 20:05:29 +0200 Subject: [PATCH] Update preview links to work in silverstripe installations that are located in a subfolder. (#558) --- code/tasks/ShopEmailPreviewTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/tasks/ShopEmailPreviewTask.php b/code/tasks/ShopEmailPreviewTask.php index 435993a51..547d73edb 100644 --- a/code/tasks/ShopEmailPreviewTask.php +++ b/code/tasks/ShopEmailPreviewTask.php @@ -33,7 +33,7 @@ public function run($request) { $email = $request->remaining(); $params = $request->allParams(); - $url = "/dev/{$params['Action']}/{$params['TaskName']}"; + $url = Director::absoluteURL("dev/{$params['Action']}/{$params['TaskName']}", true); echo '

Choose Email

'; echo '