Skip to content
Permalink
Browse files Browse the repository at this point in the history
Trim slashes from request uri before redirecting (#1001)
  • Loading branch information
JaZo committed May 27, 2021
1 parent 41150dc commit 9c837a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/HostnameActions.php
Expand Up @@ -95,7 +95,7 @@ protected function secure(Hostname $hostname, Request $request)
{
$this->emitEvent(new Secured($hostname));

return $this->redirect->secure($request->getRequestUri());
return $this->redirect->secure(ltrim($request->getRequestUri(), '/'));
}

/**
Expand Down

0 comments on commit 9c837a2

Please sign in to comment.