DataObject with asset (image) // used on // How to get the link?

Silverstripe Version: 4.9

Question:

I have created a custom DataObject “artist” which has an asset (image) field/relation.

In asset admin, on the images detail page, I can find the image and on the “used on” panel the related “artist”-DataObject shows up as expected.

But when I click I am redirected to the homepage (/#) not to the objects edit url.

How can I get the proper url?
I guess I have to implement a certain method() but have not figured out yet which one.

I am grateful for a little hint …

Thank you

Ok, I just found it myself :slight_smile:

CMSEditLink()

https://api.silverstripe.org/4/SilverStripe/Assets/File.html#method_CMSEditLink