After posting a message to a mentor via the Your Mentor module, the mentee receives a faulty link to their question containing a reduplicated hash ('##') in the url. This breaks the section link (url fragment) in two places:
- in the 'Your question has been published!' dialog pop-up immediately after publication. The link underlies the anchor text 'View your question on your mentor's talk page.'
- in the Your mentor module, under the 'Your recent questions' section, underlying anchor text consisting of a copy of the first ten words or so of the mentee question.
{F93460821,layout=right, float, width=185} The links with broken fragments gracefully degrade to top-of-page on the Mentor talk page, but they also get a small pop-up dialog box that says, 'This topic could not be found. It might have been deleted, moved, or renamed.'
Given the mentee's newness (often their very first edit at Wikipedia), imho, this is functionally equivalent to sending them to the wrong page entirely.
Real-world test: url generated was: https://en.wikipedia.org/wiki/User_talk:Alextejthompson##Question_from_Mathglot_(19:32,_13_July_2026)
Steps to replicate the issue :
- go to your Mentor module
- click the button to ask your mentor a question about editing
- in the Ask your mentor pop-up, enter your question and click Publish
- the 'Your question has been published!' dialog pop-up should appear
- mouse over or click the anchor text 'View your question on your mentor's talk page'
What happens?:
- it goes to the top of the mentor talk page when clicked (notice the double hash in the url)
- you get a pop-up dialog, 'This topic could not be found. It might have been deleted, moved, or renamed.'
What should have happened instead?:
- it should go to the section containing the question the mentee just posed.
- there should be no 'not found' pop-up.
Steps to replicate the second issue:
- go back to your Mentor module
- find your question under the 'Your recent questions' section
- click your question
What happens?:
- same result as above
What should have happened instead?:
- same as outcome above