mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
BUGFIX: Fixed redirecting to strip extensions incorrectly redirecting
This commit is contained in:
parent
cf7505b340
commit
5e72a42f13
@ -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
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user