HTML "a href=" heading links not URL escaped
Apologies if this is the wrong place to post this but it appears I can't add issues to https://gitlab.archlinux.org/archlinux/archmanweb
Description:
The HTML "a href" links generated for headings don't appear to be URL escaped, so you can't copy and paste them into other places (like the Arch Wiki) if the heading has special characters in it.
Steps to reproduce:
- Go to https://man.archlinux.org/man/systemd.network.5
- Scroll down to the fourth heading "[MATCH] SECTION OPTIONS" (or any other heading with square brackets in it)
- Right-click on the heading and copy the URL.
- Observe it is not a valid URL as the anchor contains square brackets rather than %5D type escape codes. For example you can't paste it into the Arch Linux wiki as MediaWiki does not recognise the square brackets as part of the URL.
The heading just needs to be URL-encoded before having the '#' added to the front of it.
Originally reported https://bugs.archlinux.org/task/69465