Skip to content

tags that contain a # symbol don't work right #45

@dkg

Description

@dkg

there are three tags that appear to contain a # symbol in the current database:

  • \\#AABILL
  • \\#DEFENDENCRYPTION
  • \\#SECUREAUSTRALIA

clicking on any of these links from the /tags/ URL leads to link targets like https://the-encryption-compendium.github.io/tags/%5C%5C#aabill/ -- this is problematic for at least three different ways:

  • i suspect the backslashes are not supposed to be doubled -- indeed, they show up as single backslashes in the "Tags" entries that appear in a search for "reputation", though they show up doubled when you click through
  • i suspect the backslashes are not supposed to be visible at all, that they somehow are meant to escape the octothorpe -- but that's not working.
  • When you do click on one of the tags, the # gets treated as the URL's "fragment" delimiter so it doesn't land on the tag page at all.

The actual tag landing page appears to have the double-backslash (represented as %5c) in it, followed by the percent-escaped octothorpe (as %23): https://encryptioncompendium.org/tags/%5c%5c%23aabill/

Fixing this correctly seems likely to be fiddly -- there are likely to be several places that need fixing. But perhaps the simplest way to avoid the problem is to forbid the use of the # character in a tag label. This kind of constraint might be enforced as part of the bibtex consistency check that should probably be run before a site build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions