From c9cf2b435275dfdb1ebcb28d3e6311e924fc058a Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Mon, 18 May 2015 19:07:42 +1000 Subject: [PATCH] Roll back redirection function This is a magical solution to a non-issue (aesthetic), it could easily be introduced by a plugin and is not a good substitute for proper web server configuration. Eg, Apache: ## ## Directory Listing attempts ## DirectorySlash Off RewriteOptions AllowNoSlash ## ## Redirect Trailing Slashes... ## RewriteRule ^(.*)/$ /$1 [L,R=301] --- CHANGELOG.md | 1 - config/cms.php | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 919a51275..1678d6912 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,6 @@ * **Build 260** (2015-05-16) - The `|page` filter now supports passing an empty string to generate a link to the current page. - Component variables set with `$this->page` no longer leech in to other component partials. - - The application will now perform redirects to prevent duplicate content and enforce the linking policy (see config `cms.enableRedirects`). * **Build 258** (2015-05-09) - The hotkey for full screen mode is now Cmd+Shift+F or Ctrl+Shift+F in Windows. diff --git a/config/cms.php b/config/cms.php index 9e5dfe2a7..49d0efe81 100644 --- a/config/cms.php +++ b/config/cms.php @@ -239,19 +239,6 @@ return [ 'linkPolicy' => 'detect', - /* - |-------------------------------------------------------------------------- - | Determines if the application should redirect URLs. - |-------------------------------------------------------------------------- - | - | If enabled, the application middleware will redirect URLs with trailing - | and duplicat slashes. It will also redirect based on the linking policy - | defined in linkPolicy. - | - */ - - 'enableRedirects' => true, - /* |-------------------------------------------------------------------------- | Default permission mask