Filtering view by the referenced field
To get your NID back (after it has been aliased) one of the solutions here is for you:

Drupal 7 Contextual Filter on URL Alias

But first I'd make sure your view is set up correctly with a contextual filter that has a relationship to the entity reference field ...

On your "view" click "Advanced". Click the "Add" button to the right of Relationships.

Find the "Entity Reference: Referenced Entity" relationship and check the box. Click "Apply". On the next screen, click "Apply" right away unless you want to change the identifier or make the relationship required.



Once you are back to your view's 'advanced options' Click the "Add" button to the right of Contextual filter and select "Content: Nid".



Under "Relationship", ensure that the entity reference relationship you added previously is selected. Next, select "Provide default value" and then set the type to "Content ID from URL". Click "Apply".



Stolen from here: https://www.drupal.org/node/1841004