This module allows you to configure entity reference fields to link to custom URLs instead of directly to the referenced entity. You can use the entity's ID as a parameter in the URL, for example, to link to a view or pre-populate a form.
Why this module?
You have an entity reference field, but you are not looking to link it to the entity. Instead, you might want to link to another page using the entity ID as a parameter. Or, perhaps you would like to link to a view, and use the Entity ID as a query parameter for the filter? Or perhaps a query parameter used to prepopulate a form value? These can be done in custom code, using the Url and Link classes, but this module lets you handle many link-generating cases from the field display settings.
How to use
After installing the module, go to any entity display settings page, and entity reference fields will have an "Entity Reference Custom Link" format available. Select this, and fill the appropriate options