Skip to content

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

@kathrynwp

Description

@kathrynwp

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

  • Don't display course name on lesson cards until a course is launched, or
  • Don't publish lessons until course is launched (not ideal as some courses take a while to launch, as they consist of many lessons)

Any other potential solutions?

cc @westnz @jonathanbossenger

Metadata

Metadata

Assignees

Labels

[Component] Learn ThemeWebsite development issues related to the Learn theme.[Type] BugSomething isn't working on the Learn website.

Type

No type

Projects

Status

✅ Done

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions