I have a Drupal 8.5.3 installation. I'm struggling to fix this, I have read many threads but none is exactly what I need, or at least I'm not being able to solve it: I have 2 content types: A, and B. They both have an entity reference field that references to another content type, C. I'm trying to create a block view to embed into any node of type A a list of B nodes that reference to the same C node that the current A page.
In other words:
Content type A: Cities
Content type B: Brands
Content type C: Countries
If node Rome (A) has a field that references to Italy (C), I'd like to display on it all the brands (B) that have also a field that references to Italy (C).
I have tried using relationships, contextual filters, providing default values from URL, etc. But I'm unable to make it work. I've tried selecting my entity reference field as a relationship, and then adding a contextual filter of Content ID that uses that relationship. I have also tried some other combinations but it's not working. I would appreciate some help!
Thank you very much!