You could use cookies.
Set a cookie for each “level” (Messages, Series, Message) with the URL the user has last been on (including pagination). If no value is set for, say, Messages, because the user has jumped directly into Series, then you go to the default Messages URL without pagination – if a value is set, you go there.
It’ll never be perfect, if somebody uses multiple tabs (if your app allows that), they might be on page 4 of Messages in one tab and on page 5 in the next. Since cookies aren’t tab based, you wouldn’t be able to know in which tab they are click the “Go back” button. But I think it would be close enough.
Related Posts:
- How to show all pages in blog navigation?
- Disable Attachment Pages Completely
- Modify previous and next text from pagination links
- How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table
- How can I limit the length of the previous/next posts in my WordPress Theme?
- Facebook Comment Count
- Rewriting search and pagination base
- Changing Link Attributes for Wp_Link_Pages
- Custom Loop Pagination on WordPress
- Edit format of Paginate_Links()
- Logout and redirect using the WP Menu
- Featured image fallback link to permalink
- Page navigation not showing even tho it should
- How can I add pagination and how can I change thumbnail size?
- Do changes to WordPress permalink custom structure affect old urls?
- Change Navigation Bar based on logged in or not
- WP-PageNavi is showing the first page only
- Unreadable pagination
- 200 Rewrite blog post links
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- WordPress Persistent connection rule does not work for “posts”
- Search not showing all results
- Help with Sub and Sub-Sub Navigation
- Create custom permalinks to show Custom Post Type’s relationship?
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- Pagination for custom shop loop woocommerce
- How to create pagination for users list using custom array?
- Add login hyperlink to secondary navigation menu
- 2nd page displaying the exact same posts as my first page (minus the very first post)
- Change product_base programmatically
- the_posts_pagination() not working in wpquery
- Divi change project category slug
- Custom post type permalinks do not appear using the link functions
- Remove slugs from custom posts type
- .html end of URl affected to SEO?
- Custom pagination (Previous / Next)
- Creating a Category Taxonomy
- posts_nav_link pulling in multiple post types
- Make next post button link to random post
- Why can’t I add a custom image in my navigation?
- Remove the Tag from wp_nav_menu
- Insert PHP code in Text
- Adding a navigation page state to individual blog and portfolio pages
- Permalinks: site.com/post-tite vs site.com/post-id/post-title for SEO and Speed
- Pagination in single.php
- WordPress navigation wont appear with wp_head
- Change permalink structure specific category
- understand what code is doing when prepending /blog
- Custom URL for multiple categories hierarchy
- Help to modify wp_link_pages()
- WordPress redirects to localhost
- 404 on old link after changing post url
- url not using query string no longer working
- static page pagination not working
- AJAX numerical pagination problem in TwentyFifteen-child theme
- Permalink doesn’t navigate to post (changes only url)
- Permalink changes after several minutes after saving post
- How to edit button permalink inside function.php using a child theme?
- Redirect User when they click Menu Option
- Pagination – Previous link is not show and Next link sticks at page 2
- How do I stop my form from adding code to current page URL instead of re-directing. Been stuck for days
- image on homepage disappeared due to change of permalink name
- How can I get my pagination loop to display the correct number of total pages?
- Add a leading zero to pagination
- Get current_post in reverse order with pagination
- 403 Forbidden Localhost Wamp Apache Php
- Permalinks and custom PHP application
- Some links broken after updating WordPress version
- rewrite_rule – working fine but broken for pagination
- How to fix blank pagination links?
- WordPress Rewrite Issue
- Would it be possible to route WordPress Through an MVC Application
- Add the “.current-menu-item” class to tag?
- How can i list all user registered on my website and have pagination [duplicate]
- Nav Menu Display
- Get permalink for a post from inside WordPress and route to a related site
- custom data in url
- Make a permalink to the most recent blog post
- Pagination in category.php not functioning
- PHP code for link with text
- Accessing WordPress Functions get_permalink() in Vanilla PHP?
- How to add pagination for wordpress home page
- Pagination 404 on my index.php
- Open WordPress Page from selected option dropdown
- paginate_links() returns NULL instead of the pagination links, but pagination is actually happening
- Blog Posts not sorted and pagination not adjusted after filtering some category
- How to Set Page Pagination Using Ajax JQuery – WordPress
- Custom Navigation Bar JSON Syntax Error in JSON at Position 0
- How to extract URLs from wordpress taxonomies
- why css file not link?how to create permalink?
- Nav menù doesn’t display selected pages
- How to automatically flush permalinks?
- Execute wp_after_insert_post after the permalink is customized
- Custom post type removing /page/2/ from URL when trying to access it
- WordPress CPT & Custom Taxonomy with the SAME Permalink Structure
- Modify the permalink structure for a specific category
- Category Attachment Pagination 404 Error on 2nd Page
- WordPress per ACF – permalink is not working
- Processing data and redirecting with query string
- I’ve added SKU to Woocommerce permalinks, but I have small issue