I'm trying to make every taxonomy term page link direct to a pattern like this:
So, for example instead of
material/bronze where bronze has term id 7, you'd have:
...and you'd go to a views page where the user could then turn off the materials filter and turn on other filters.
I've tried setting this pattern up using PathAuto at
/admin/config/search/path/patterns, which does the opposite of what I want: while it does make links to a taxonomy page point to URLs that look like
viewpage?material=7, it then intercepts these and sends them to the default taxonomy term page, breaking the exposed filters!
I've tried using Global Redirect, but it doesn't seem able to apply patterns, it seems I'd need to enter the redirects by hand which isn't sustainable.
Redirect Tokens module looks to be designed to do what I want, and even has an example very similar to my case but with users not taxonomy and facets not exposed filters, but on closer inspection a) it only accepts tokens in the "from" field not "to" and b) it only works with global tokens like current user.
I've figured out that it's potentially possible using cTools Page Manager:
- Enable and edit the Taxonomy View page
- Set it the HTTP Response Code variant
- Select 301 redirect then input the new URL...
...but I'm not sure how to inject the [tid] into the new URL pattern. The help text says "You may use keyword substitutions from contexts" but there doesn't seem to be any way to view or edit contexts for a page override.
How can I bulk redirect all current and future URLs of taxonomy term pages to this exposed filter view?