The tag page index seems incorrect in one place #132

Open
opened 2023-06-22 18:43:45 +00:00 by davmo · 1 comment
Collaborator

The multi-column index on this page lists initial letters of blocks of tags.

Clicking on the letter 'k' does not move to the corresponding 'k' tags. Instead, it moves to the middle of the 'c' block.

I have seen this before; it has something to do with Unicode characters being used as anchors. I can investigate unless someone else wants to.

The multi-column index on this page lists initial letters of blocks of tags. Clicking on the letter 'k' does not move to the corresponding 'k' tags. Instead, it moves to the middle of the 'c' block. I have seen this before; it has something to do with Unicode characters being used as anchors. I can investigate unless someone else wants to.
davmo added the
Bug Found
label 2023-06-22 18:43:45 +00:00
davmo self-assigned this 2023-06-22 18:43:45 +00:00
davmo changed title from The tag page index seems incorrect in places to The tag page index seems incorrect in one place 2023-06-22 19:00:34 +00:00
Author
Collaborator

As I have been working on #152 to make all tags into links to the tag page I have noticed a few things:

  1. The anchors on the tag page are all lower case (which is good)
  2. If the original tag is multi-word the spaces are part of the anchor (seems to work OK, but feels like a bit of a problem waiting to happen)
  3. Some tags contain Unicode characters, and therefore, so do the anchors, and that can cause problems.

Suggestions:

  1. Any code that needs to look up a tag must convert the anchor to lower case
  2. Maybe in the anchors we should replace spaces with underscores
  3. We should use some kind of Unicode conversion when generating anchors (HTML entity?)
As I have been working on #152 to make all tags into links to the tag page I have noticed a few things: 1. The anchors on the tag page are all lower case (which is good) 1. If the original tag is multi-word the spaces are part of the anchor (seems to work OK, but feels like a bit of a problem waiting to happen) 1. Some tags contain Unicode characters, and therefore, so do the anchors, and that can cause problems. Suggestions: 1. Any code that needs to look up a tag must convert the anchor to lower case 1. Maybe in the anchors we should replace spaces with underscores 1. We should use some kind of Unicode conversion when generating anchors (HTML entity?)
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: rho_n/hpr_generator#132
No description provided.