Skip to content

Commit 15f8fb4

Browse files
fix: Fix pagination URLs if query string is already present
In the explore section, the base URL of the pagination links was "https://example.com/explore" instead of "https://example.com/explore?topic=<id>".
1 parent c65bc49 commit 15f8fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/layouts/_pagination.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% if pagination.mustPaginate %}
2-
{% set url = url ~ '?' in url ? '&amp;' : '?' %}
2+
{% set url = url ~ ('?' in url ? '&' : '?') %}
33

44
<nav class="pagination">
55
<ul class="pagination__container">

0 commit comments

Comments
 (0)