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?
- How to remove role=”navigation” from all nav elements?
- php script to change slug in post automatically
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- get_terms pagination
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- WordPress every page is 404 not found including admin resources
- WordPress returning 404 for multisite pages
- Custom Walker_Nav_Menu issue with variables on PHP 7.3
- How to use $_GET function WordPress backend
- Search not showing all results
- Help with Sub and Sub-Sub Navigation
- Pagination in plugin’s backend
- Create custom permalinks to show Custom Post Type’s relationship?
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- PHP code to use on next & previouspage links
- Pagination for custom shop loop woocommerce
- How to get all author posts outside of author templates
- How to get post permalink url without a href
- How to create pagination for users list using custom array?
- How to style one item from main navigation?
- get_template_directory_uri() providing wrong path for img
- Custom Pagination is Broken
- Pagination on Custom Post
- Next post link on a bootstrap button
- Add login hyperlink to secondary navigation menu
- 2nd page displaying the exact same posts as my first page (minus the very first post)
- stripping tags from excerpt in WordPress is not working
- Prev/Next Links Broken on Static Front Page Pagination
- Help with page nav?
- Change product_base programmatically
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- the_posts_pagination() not working in wpquery
- Divi change project category slug
- ACF Repeater Pagination stopped working since upgrade to php7.2
- Generating rel=”prev” and rel=”next” using filters
- Need help with Code Correction php+wordpress
- Custom query vars filters problem with pagination
- Custom post type permalinks do not appear using the link functions
- Menu Custom Data Attributes
- Remove slugs from custom posts type
- Need help with pagination
- .html end of URl affected to SEO?
- How can I get “Previous” and “Next” to show in the navigation besides the links?
- How to modify mobile nav menu text in theme
- Custom pagination (Previous / Next)
- Search only working on front page (index) , not working on other pages
- how to edit a specific post slug using a php code?
- Nav-Menu not showing up
- Creating a Category Taxonomy
- WordPress pagination not working in search result page
- posts_nav_link pulling in multiple post types
- Custom navigation menu with awsAccordion
- Remove Post if Advanced Custom Field is checked to fix paging
- WordPress theme showing blank page
- Make next post button link to random post
- Why can’t I add a custom image in my navigation?
- How to add PHP pagination to wordpress
- pagination broken – clicking next displays “page not found”
- Strip hashtag off permalink with php
- page 1 is not paged
- Remove the Tag from wp_nav_menu
- Pagination stays on same page for post category
- Insert PHP code in Text
- Pagination Not Working (pages duplicating content)
- 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
- Can not call .php files after switching to %postname%
- WordPress permalink issue
- Pagination in single.php
- WordPress navigation wont appear with wp_head
- Pagination at category doesnt work with same name of page
- Change permalink structure specific category
- How to work Woocommerce pagination inside shortcode?
- understand what code is doing when prepending /blog
- Custom URL for multiple categories hierarchy
- Help to modify wp_link_pages()
- How do I get pagination for get_posts() in WordPress or do I have to rewrite the whole code?
- WordPress redirects to localhost
- In PHP how do I make my navigation bar show certain links to admins only?
- Allow two posts (from different categories) to have the same slug
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- 404 on old link after changing post url
- Custom Navigation Bar JSON Syntax Error in JSON at Position 0
- how to goto specific page number including title with permalink
- How to extract URLs from wordpress taxonomies
- WordPress 6.1.1 UTF8 Slug Limit Increase
- why css file not link?how to create permalink?
- /page/2/ redirect to 404
- Nav menù doesn’t display selected pages
- Why do I get a 404 error on my custom post type archive pagination?
- 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
- Remove slug of multiple custom post types with and without hierarchical
- Modify the permalink structure for a specific category
- Pagination with WP_query giving same items in each page
- change the blog in the url if you go from a specific page wordpress