Hi, thanks for your reply.
It doesn’t work, and here’s the output code on the page source:
<script>Discourse._registerPluginCode('0.8.20', function (api) {
$(function () {
$("a.home-link").click(function () {
console.log("test");
require("discourse/lib/url").default.routeTo($(event.currentTarget).attr("href"));
return false;
});
});
});</script>