Forum
Pagination bug: 'prev_url' not populated
I encountered a problem where the previous page's URL wasn't being generated in the default Perch pagination template, yielding this output:
<a href="">Previous</a>
Using <perch:showall/>
, I was able to determine that the prev_url
variable was left unset. (next_url
appears to be set correctly.)
Since prev_page_number
is set, I have been using the following workaround in the default template to generate a link to the previous page:
<a href="?page=<perch:content id="prev_page_number" type="hidden" encode="false" />">Previous</a>
However, this is unideal, since not every paginated element may conform to the ?page= syntax.
Can we see your Diagnostic Report please?
Here is our latest Diagnostic Report.
Updated to short version.
Is this the diagnostic report you meant, Rachel?
Yes please.