I have successfully overwritten the "New" and "Edit" behavior of a custom object with a lightning aura component. Everything is working fine and if the user clicks the related list new button of the parent Account, I can prepopulate the Account in the component using the AccountId of the URL. So good so far.
Unfortunately, if the user clicks the New record shortcut from the object tab, my component prepopulates the Account too. I need to distinguish if the user has clicked the related list "New" or the "New" of the Object tab. Any ideas how to achieve this?