You should use the following code in Head instead:
<script type="text/discourse-plugin" version="0.8">
api.addCommunitySectionLink({
name: "unread",
route: "discovery.unread",
title: I18n.t("some.unread.title"),
text: I18n.t("some.unread.text"),
icon: "fa-envelope"
});
</script>
<script type="text/discourse-plugin" version="0.8"> is important if you want to use the API.
That should work better. ![]()