Ajouter un lien dans le menu utilisateur

You can use something like this in the </head> section under common:

<script type="text/discourse-plugin" version="0.8">
api.addUserMenuGlyph({
  label: "c_user_icon",
  className: "my-class", // change classnames
  icon: "heart", // change icon
  href: `/some/path` // change path
});

I18n.translations.en.js.c_user_icon = "label goes here"; // change label here
</script>

Here’s the result:

This is documented here:

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/plugin-api.js.es6#L540-#L556