FIX: Remove auto-route from topic-link (#12999)

This was needed to fix a bookmark back button issue but it
broke category topic links, causing a full reload. Now it appears
something has changed in core and this is no longer necessary for
the bookmark back button to work, so I am removing it again.
This commit is contained in:
Martin Brennan 2021-05-10 11:09:55 +10:00 committed by GitHub
parent a4bd1806d9
commit aaa034786a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,6 @@ registerUnbound("topic-link", (topic, args) => {
const result = `<a href='${url}' const result = `<a href='${url}'
class='${classes.join(" ")}' class='${classes.join(" ")}'
data-topic-id='${topic.id}' data-topic-id='${topic.id}'>${title}</a>`;
data-auto-route="true">${title}</a>`;
return htmlSafe(result); return htmlSafe(result);
}); });