WordPress / WordPress/HelpHub

Jump links contain superflous unicode characters

Open
#328 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
116
Forks
54
PR merge metrics
No merged PRs in 30d

Description

Simplify jump links by removing such characters

For example on https://wordpress.org/support/article/settings-discussion-screen/ we have these jump links:

https://wordpress.org/support/article/settings-discussion-screen/#email-me-whenever%ef%bb%bf
https://wordpress.org/support/article/settings-discussion-screen/#before-a-comment-appears%ef%bb%bf
https://wordpress.org/support/article/settings-discussion-screen/#comment-moderat%ef%bb%bfion%ef%bb%bf

Looks like this is a ZERO WIDTH NO-BREAK SPACE
https://www.fileformat.info/info/unicode/char/feff/index.htm

Also known as BOM: https://en.wikipedia.org/wiki/Byte_order_mark

I don't think it is useful or intended here and therefore should be removed to simplify those jump links.

I haven't checked any other pages, but maybe the problem is on more helphub pages.

Contributor guide

Open the contributing guide

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.

Research direction

Start by inspecting the generated jump links on the example Settings > Discussion screen page and compare them with the source headings. Trace where the ZERO WIDTH NO-BREAK SPACE characters enter the links, then verify that affected HelpHub pages produce simplified anchors without those characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.