Skip to content

Commit 3268a75

Browse files
committed
clean up
1 parent 60ce931 commit 3268a75

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Plugin/AddPathPlugin.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ public function __construct(UriInterface $uri)
4747
public function handleRequest(RequestInterface $request, callable $next, callable $first)
4848
{
4949
// Use the request URI as an identifier
50-
$identifier = sha1((string) (string) $request->getUri());
50+
$identifier = sha1((string) $request->getUri());
5151

5252
// If the current URL is a result of a previous rewrite, then do nothing.
5353
if (!array_key_exists($identifier, $this->alteredRequests)) {
54-
$prefixedPath = $this->uri->getPath().$request->getUri()->getPath();
55-
$prefixedUri = $request->getUri()->withPath($prefixedPath);
54+
$prefixedUri = $request->getUri()->withPath($this->uri->getPath().$request->getUri()->getPath());
5655
$request = $request->withUri($prefixedUri);
5756

5857
// Store for future checks

0 commit comments

Comments
 (0)