Bug #15153
closedMain nav Courses link broken
0%
Description
Clicking the Courses top nav item on public or logged-in, it goes to a redirect and broken page:
https://commons.gc.cuny.edu/courses/
Starting a new ticket for this one since it's so prominent, though I know we've had other nav item issues.
Updated by Boone Gorges almost 3 years ago
A rewrite rule flush seemed to fix this (/courses/ is the CPT archive URL). Ray, any idea why this might have been necessary?
Updated by Raymond Hoh almost 3 years ago
I do not have any ideas at the moment regarding the rewrite rule flush. Although when I was testing the site yesterday, the Courses Directory was resolving properly.
One other related thing I noticed is the "Courses" nav item was not showing up in the sitewide footer's primary nav. I checked the menu under "Appearance > Menus" and the Courses nav item was added as a Post Type Archive. Due to the way we cache the sitewide footer as a transient, when the transient expires and the sitewide footer is generated from a sub-site, the Courses CPT isn't available when on a sub-site so that is probably why the Courses nav item did not show up in the footer. I've just re-added the Courses nav item as a Custom Link and hopefully, that should address this particular issue.
Updated by Matt Gold almost 3 years ago
Hi all -- when I click on "courses" on the homepage, the error is still occurring.
It looks like the Courses link in the sitewide nav in the top black bar, and in the main nav bar, both go to https://commons.gc.cuny.edu/courses/ However, that link is being redirected to https://commons.gc.cuny.edu/docs/courses-for-consideration-in-a-ds-minor/ . And that page is throwing a Page not found error
Since this is in our main nav and given the importance of the course directory, this is a pretty prominent issue to address.
Updated by Raymond Hoh almost 3 years ago
I've just did a rewrite flush and the Courses Directory is resolving again.
I'll try and spend a little bit of time to see what might be going on.
Updated by Matt Gold almost 3 years ago
thank you so much, Ray!! Much appreciated.
Updated by Boone Gorges almost 3 years ago
- Status changed from New to Resolved
- Target version set to 1.19.1
I believe this is the same underlying issue as #15170.