Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set group context on all rewritten URLs, not just those in the group #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

freelock
Copy link

@freelock freelock commented Aug 3, 2017

The outbound URL rewriting adds the group path to each URL. However, it does not set a cache context for these rewritten links -- so if you go to a different Purl context, you get cached links from the first context that generated the links, until you clear the cache.

CacheContext was already set correctly for links within a group, just not for the other rewritten links.

This PR adds a cache context to all URLs generated on a page, if there's an active Purl context.

@rbran100
Copy link

rbran100 commented Oct 5, 2017

@freelock 👍 this is key for our use of this module

@freelock
Copy link
Author

freelock commented Oct 5, 2017

@rbran100 our project has been on hold, but there is definitely more work to do on this... @bezhermoso can we get some review/merging, to get this closer to a useful state?

freelock pushed a commit to freelock/purl-d8 that referenced this pull request Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants