Skip to content

Commit

Permalink
Fix getgrav#3127 redirect trailing slash using 301 statuscode
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoHood authored Jan 5, 2021
1 parent 2738107 commit 2a8f0e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Processors/InitializeProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
&& Utils::endsWith($path, '/')) {

$redirect = (string) $uri::getCurrentRoute()->toString();
$this->container->redirect($redirect);
$this->container->redirect($redirect, 301);
}

$this->container->setLocale();
Expand Down

0 comments on commit 2a8f0e4

Please sign in to comment.