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 96b0321 commit e5a3117Copy full SHA for e5a3117
phpmyfaq/src/phpMyFAQ/Pagination.php
@@ -171,7 +171,7 @@ protected function renderUrl(string $url = '', int $page = 1): string
171
172
$urlToParse = '%s%s%s=%d';
173
$cleanedUrl = Strings::preg_replace(
174
- ['$&(amp;|)' . $this->urlConfig->pageParamName . '=(\d+)$'],
+ ['/[?&](amp;|)' . $this->urlConfig->pageParamName . '=(\d+)/'],
175
replacement: '',
176
subject: $url,
177
);
0 commit comments