WordPress / Learn

WordPress.org Learn - The canonical source for the code and content behind https://learn.WordPress.org
277 stars 100 forks source link

If course hasn't launched yet, course links from lesson cards give a 404 #2856

Closed kathrynwp closed 3 months ago

kathrynwp commented 3 months ago

Summary

Content creators currently publish lessons even before the full course that they're part of has gone live. This allows learners to access single lessons without needing to wait until the whole course is available.

Issue

Now that the course name is linked from individual lesson cards on archive pages, if a lesson card links out to a course that hasn't yet been published, the user gets a 404 page. An example is the Advanced WordPress User course, which hasn't yet launched.

To replicate

  1. Go to https://learn.wordpress.org/lessons/ in an incognito window.
  2. Click on "Advanced WordPress User" on any lesson card, such as:
Lessons___Learn_WordPress

Result

404 not found.

Possible solutions

Any other potential solutions?

cc @westnz @jonathanbossenger

westnz commented 3 months ago

I would suggest, "Don't display course name on lesson cards until a course is launched."