WordPress / WordPress/Learn

Bug report - Broken Anchor Link

Open
#1,919 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

[Component] Content [Dev] Has PR [Type] Bug
Dominant language
PHP
Stars
333
Forks
127
Avg merge
1d 7h
Merged PRs (30d)
11

Description

Description

Lesson plan's pattern template has "Lesson Wrap Up" section at the end that anchor links to Exercises and Assessment.
Lots of lesson plan's anchor links are not working. I've made a pull request to start. #1880

Step-by-step reproduction instructions

Below are some examples of broken anchor link lesson plans.

Examples of headings have lowercase IDs but anchor link is capitalized:
https://learn.wordpress.org/lesson-plan/how-to-build-low-code-block-patterns/
https://learn.wordpress.org/lesson-plan/anonymizing-information-in-the-browser/

Example of no IDs in headings:
https://learn.wordpress.org/lesson-plan/how-to-add-and-remove-logo-and-site-icon-in-site-editor/#Assessment

Expected behaviour

  1. Fix existing Lesson Wrap Up section Exercises and Assessment anchor links.
  2. decide whether to keep capitalize anchor link or update to lowercase.

Actual behaviour

  1. some lesson plan's anchor links are not working
  2. pattern template title has no ID set for anchor link

Screenshots or screen recording (optional)

Environment information

  • Browser(s) are you seeing the problem on.
  • Device you are using and operating system (e.g. "Desktop with Windows 10", "iPhone with iOS 14", etc.).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.