HTTP and therefor web pages do not have any context, which is what you basically need, and only browsers can store context. You can add the context on the PHP side in a cookie, add to the page some JS code that inspects the cookie and based on it sets the actual url for the links you want to have.
for the benefit of people that do not have JS enabled, or google, set some “default” URL values there.
Related Posts:
- Working with Next and Prev links in Single Taxonomy Templates
- Display next 3 posts based on custom taxonomy
- Previous/Next custom post links within custom taxonomy
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- Filter next_post_link() and previous_post_link() by meta_key?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- How can I get next post id after current post id for custom post type
- Problem excluding category from get_next_post
- specify meta_key / meta_value condition for prev_post_link and next_post_link
- Using previous_post_link and next_post_link to wrap around post sequence
- Custom Taxonomies: Multiple Hierarchical Permailnks For A Single Post + Prev/Next Links
- next_post_link and previous_post_link in custom post type single page, in same non-custom category
- Next and Previous Posts of Same Parent
- Modify previous and next post links to current Authors Other posts
- Why are previous_post_link/next_post_link skipping some posts?
- Add Previous/Next Buttons to CPT Single Pages Only
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- Include “Scheduled” (“Future”) Posts in WordPress Post Navigation ( previous_post_link, next_post_link ) for a Specific Custom Post Type
- How to get next post link of child custom post type from parent post and get next post link of parent post from the last child post?
- Prev/Next Navigation on Single Post Disappeared for Custom Post Type
- get_previous_post_link and get_next_post_link of custom post type that share custom field value
- Next/Previous Post Links in single-[custom-post-type].php file
- show previous/next post orderer by title in custom post types
- previous_posts_link returns null when querying custom post type
- WordPress custom post type advise
- Custom Post Type and Taxonomies, creating the corresponding template file and loop the data
- Generating a radius search on postmeta-metavalue and adding a taxonomy to query
- WordPress Custom taxonomy template
- Plugin Error on activating
- Associate custom categories to different user IDs
- Get posts associated with custom taxonomy alternate way
- Hierarchical taxonomy in permalink structure
- How to create default taxonomy term for a custom post type? [duplicate]
- Can I create a taxonomy term that mirrors the name of a new custom post?
- Rewrite for custom type and custom taxonomy
- Extensive search filtering and results->PDF in the front-end
- How to pass taxonomy terms to WP_Query along with $args?
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Custom Post Status & Taxonomies
- Display custom Taxonomies same as listing Categories
- redirect old post type url to new structure url
- How can I add a “fake” parent into the permalink?
- Custom post type taxonomy not sorting correctly
- WordPress custom post type
- How to have working breadcrumbs with several taxonomies associated with a custom post type
- Get list of CPT posts in *current* post’s taxonomy term
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- show custom taxonomies in hierarchy
- Loop with Custom Post Type and Taxonomies
- Pagination fault in custom post type archive page [duplicate]
- Display 2nd category, only once, as sub-heading, in the loop
- Custom Post Types and Pre Populated Custom Taxonomies
- Render custom taxonomy query as single template
- Custom meta-box for all custom post types
- Custom Taxonomy Query by Taxonomny not working
- WordPress: insert a custom post type instance as an option for a custom taxonomy
- Fetch posts list from fist CPT taxonomy term and list under 2. CPT
- How to solve performance issue caused by custom post type overview with 20k+ custom taxonomy terms
- Single page archive – get coresponding taxonomy and terms
- How to assign custom post template to its custom taxonomy terms
- Excluding top level from taxonomy and post loop
- Prevent repetitive terms in get_the_term_list
- Trouble showing showing Posts related to custom post type and taxonomy.
- One custom post type with two different url structure base on taxonomy term
- How to query posts by meta keys AND under specific category?
- Displaying posts exclusively in their category (not parent)
- Loop multiple taxonomy in custom post
- Shortcode display CPT Query only showing 1 post?
- wp_query: How to retrieve current term slug in custom taxonomy?
- Get custom taxonomy name from custom post
- Custom taxonomy archive is visible to only subscibed users
- Post Editor: display categories from current post type taxonomy only?
- Custom Post Type and Custom Taxonomy not connected
- tax_query showing no results
- Add different meta box based on taxonomy
- List all posts from custom post type by taxonomy
- Permalinks when using Custom Post Type with static page for archive
- How to List CPTs Under One Tax Term
- How to change permalinks to taxonomy and post type’s posts
- Generating List of Tags from Custom Post Type
- predefined custom field on registration page
- Post data in separate divs with incrementing class using WP_Query
- Displaying taxonomy icon outside archive page
- Why won’t this rewrite rule work?
- archive-{custom_post_type}.php not getting recognized wordpress
- Paginate custom taxonomy category with wp_custom_pagination
- Archive.php is not displaying tags
- How to retrieve the permalink for a specific (custom) term?
- Values inside a custom field to determine which category posts to display
- Custom post type post taxonomies
- Custom Taxonomy List, Selection floats to top
- Custom post type – two taxonomies
- Exclude Custom Post Type from shared Custom Taxonomy
- Get custom post type where taxonomy..
- If taxonomy show class of active
- Connecting multiple post types? Or linking “News” posts with “Game” posts how?
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Show Custom Post Type taxonomy term that matches custom field
- Querying multiple taxonomies in URL leads to wrong taxonomy archive
- Sort by Custom Post Type (Multiple Loop)