mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Improve discussion page canonical URL (#2853)
* Switch to ?page= discussion page canonical URL & fix no-JS pagination buttons
This commit is contained in:
committed by
GitHub
parent
03e4f31bda
commit
6fd185e425
@@ -15,11 +15,11 @@
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@if (isset($apiDocument->links->prev))
|
||||
@if ($hasPrevPage)
|
||||
<a href="{{ $url(['page' => $page - 1]) }}">« {{ $translator->trans('core.views.discussion.previous_page_button') }}</a>
|
||||
@endif
|
||||
|
||||
@if (isset($apiDocument->links->next))
|
||||
@if ($hasNextPage)
|
||||
<a href="{{ $url(['page' => $page + 1]) }}">{{ $translator->trans('core.views.discussion.next_page_button') }} »</a>
|
||||
@endif
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user