az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

Redirects not working #1900

Open cpoff opened 2 years ago

cpoff commented 2 years ago

Problem/Motivation

After migrating the Provost site, I built a custom directory page containing several custom views of Person groupings. Each office has it's own view. The taxonomy terms for those groupings are displayed at the bottom of the Person view. For example: Karen Francis-Begay has Native American Initiatives term visible, among several others.

But when you click on that term, I don't want to go to the default person-category listing. I want it to go to the anchor link for Native American Initiatives on the Contact page, which displays the NAI view.

So using the Drupal UI, I set up a redirect for the former to point to the latter. There are four total:

Office of the Senior Vice President for Academic Affairs and Provost /person-categories/office-senior-vice-president-academic-affairs-and-provost /people/directory#srvpaaprovost

Senior Vice Provost for Academic Affairs, Teaching, and Learning /person-categories/senior-vice-provost-academic-affairs-teaching-and-learning /people/directory#srvpaatandl

Office of the Vice Provost for Faculty Affairs /person-categories/office-vice-provost-faculty-affairs /people/directory#vpfa

Native American Initiatives /person-categories/native-american-initiatives /people/directory#nai

Describe the bug

None of the redirects are working.

For reference

Our team has noticed a variety of redirect bugs going around. Dana and I even got different results/errors while trying to do the same thing on the same page. Joe included a couple links from Drupal that may be related:

https://www.drupal.org/project/redirect/issues/3057250 https://www.drupal.org/project/redirect/issues/3018897

cpoff commented 2 years ago

Solution pointed out by my esteemed colleague is to do the redirect directly against taxonomy term.