From ae623583f16d55d028f75ebf7a7e99a424446cb5 Mon Sep 17 00:00:00 2001 From: Darren Oh <2293701+darrenoh@users.noreply.github.com> Date: Fri, 1 Dec 2023 14:11:23 -0500 Subject: [PATCH] Fix setPath bug --- src/Path/CurrentPathStack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Path/CurrentPathStack.php b/src/Path/CurrentPathStack.php index 953555f0..d6a582f0 100644 --- a/src/Path/CurrentPathStack.php +++ b/src/Path/CurrentPathStack.php @@ -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; }