Reply text gets created like this:
Replying to [m-kasahr](656#fe1b):
The newline is unnecessary and should be removed so it's all on one line. Ticket URLs require a trailing slash, so the url should be
656/#fe1b which will allow anchors to work properly without reloading the whole page.