User id not tracked if link is opened with right click

I have an AngularJS application where I would like to track user ids.

When the user left-clicks a link leading to another page in the application, which is opened on a new tab thanks to target="_blank" in the anchor, then it works, the user id is tracked.

However, when the user right-clicks on the link and opens it on a new tab, the user is is not tracked, and the visit is shown as Direct Entry.