mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 20:03:15 +08:00
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:
parent
a4bd1806d9
commit
aaa034786a
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user