From 5e72a42f13f82d5e3373fd132cd57c8787986600 Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Fri, 19 Feb 2016 09:34:31 -0400 Subject: [PATCH] BUGFIX: Fixed redirecting to strip extensions incorrectly redirecting --- code/controllers/DocumentationViewer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/DocumentationViewer.php b/code/controllers/DocumentationViewer.php index 38161a9..2817677 100755 --- a/code/controllers/DocumentationViewer.php +++ b/code/controllers/DocumentationViewer.php @@ -166,7 +166,7 @@ class DocumentationViewer extends Controller if (DocumentationHelper::get_extension($url)) { $this->response = new SS_HTTPResponse(); $this->response->redirect( - DocumentationHelper::trim_extension_off($url) .'/', + Director::absoluteURL(DocumentationHelper::trim_extension_off($url)) .'/', 301 );