Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8c3556c

Browse files
committed
FIX UriHelper::getCurrent missing query string
1 parent 23fea3e commit 8c3556c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/utils/UriHelper.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,9 @@ public static function getCurrentString(array $sapiVars = [], bool $cached = tru
256256

257257
public static function getCurrent(UriFactoryInterface $uriFactory): UriInterface
258258
{
259-
return $uriFactory->createUri(static::getCurrentString());
259+
return $uriFactory
260+
->createUri(static::getCurrentString())
261+
->withQuery($_SERVER['QUERY_STRING'] ?? '');
260262
}
261263

262264
private static function mapReplaceString(string $uri, array $replaces, bool $encode_values = true): string

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /