We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7533c2d commit 1f1e345Copy full SHA for 1f1e345
src/Plugin/AddPathPlugin.php
@@ -39,9 +39,11 @@ public function __construct(UriInterface $uri)
39
*/
40
public function handleRequest(RequestInterface $request, callable $next, callable $first)
41
{
42
- $request = $request->withUri($request->getUri()
43
- ->withPath($this->uri->getPath().$request->getUri()->getPath())
44
- );
+ if (strpos($request->getUri()->getPath(), $this->uri->getPath()) !== 0) {
+ $request = $request->withUri($request->getUri()
+ ->withPath($this->uri->getPath().$request->getUri()->getPath())
45
+ );
46
+ }
47
48
return $next($request);
49
}
0 commit comments