I have managed to sort most Craft CMS questions out by reading the docs and feedback on StackExchange but am having issues with this one.
I have a page with a list of entries down the right side and the main entry content to the left.
The list is paginated. When I go to say page 2 of the pagination and click on an entry, the page reloads with the page 1 pagination list.
How can I get the page to remember that the entry belongs to page 2?
{% paginate craft.entries.section('orchard').limit('5').id('not ' ~ entry.id) as entriesOnPage %}
{% for entry in entriesOnPage %}
{% for asset in entry.mediaThumb %}
<div class="shuntalittle">
<h6><a href="{{ entry.url }}">{{ entry.title }}</a></h6>
<a href="{{ entry.url }}">
<img src="{{ asset.getUrl('thumbTransform') }}" alt="{{ asset.title }}">
</a>
</div>
{% endfor %}
{% endfor %}
<div class="pagination-centered shuntalittle">
<ul class="pagination">
{% if paginate.prevUrl %}
<li><a href="{{ paginate.prevUrl }}" class="arrow">«</a></li>
{% endif %}
{% for page, url in paginate.getPrevUrls(5) %}
<li><a href="{{ url }}">{{ page }}</a></li>
{% endfor %}
<li class="current"><a href="">{{ paginate.currentPage }}</a></li>
{% for page, url in paginate.getNextUrls(5) %}
<li><a href="{{ url }}">{{ page }}</a></li>
{% endfor %}
{% if paginate.nextUrl %}
<li><a href="{{ paginate.nextUrl }}" class="arrow">»</a></li>
{% endif %}
</ul>
</div>
{% endpaginate %}
Many thanks, Alex