[Guide] How to get the current project the user is on for the front end?

My colleagues and I needed to know the current project the user is on in our Plugin and we came up with this solution:

Assuming your plugin also resides in a web-item and has it’s own servlet:

<web-item name="yourWebitemName" i18n-name-key="yourWebitemTranslationKey"
              key="yourKey" section="sectionOfYourChoice"
        <description key="yourDescriptionKey"/>
        <label key="yourLabelKey"/>
        <link linkId="yourLink">

This is the important part to include

Hope this helps.