Skip to content

Commit

Permalink
Fix setPath bug
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenoh committed Dec 9, 2023
1 parent 8eac66c commit ae62358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Path/CurrentPathStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function setPath($path, ?Request $request = null): static
{
$request ??= $this->requestStack->getCurrentRequest();
assert($request instanceof Request);
$_GET['q'] = $request->getPathInfo();
$_GET['q'] = $path;
$this->paths[$request] = ['path' => &$_GET['q']];
return $this;
}
Expand Down

0 comments on commit ae62358

Please sign in to comment.