Hash fragments need to be escaped with Sanitizer::escapeIdForLink.
- Go to https://en.wikipedia.beta.wmflabs.org/w/index.php?title=User:ESanders_(WMF)/sandbox&oldid=556241&useskin=vector-2022
- Click on the last link in the TOC (Romeo+Juliet)
- Observer the link does nothing
In classic vector this works fine: https://en.wikipedia.beta.wmflabs.org/w/index.php?title=User:ESanders_(WMF)/sandbox&oldid=556241&useskin=vector
TODO
- Make a new data field available linkAnchor
- A new data field has been made available inside the TableOfContents called linkAnchor. Change references to anchor to linkAnchor: https://github.com/wikimedia/Vector/blob/master/includes/templates/TableOfContents__line.mustache#L3
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | โ | T315222#8252105 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | โ | T315222#8277896 |