Project

General

Profile

Actions

Bug #15153

closed

Main nav Courses link broken

Added by Colin McDonald about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority name:
Urgent
Assignee:
Category name:
-
Target version:
Start date:
2022-01-05
Due date:
% Done:

0%

Estimated time:
Deployment actions:

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.

Actions #1

Updated by Boone Gorges about 2 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?

Actions #2

Updated by Raymond Hoh about 2 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.

Actions #3

Updated by Matt Gold about 2 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.

Actions #4

Updated by Raymond Hoh about 2 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.

Actions #5

Updated by Matt Gold about 2 years ago

thank you so much, Ray!! Much appreciated.

Actions #6

Updated by Boone Gorges about 2 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.

Actions

Also available in: Atom PDF