Function return for link

I want to set an anchor for the post url element in a new window. Like /events/festival-in-vienna/#live so if someone clicks on the button of a custom post type the url should be the post url and an invidivual anchor after the link.

Could we get a function return option for the link element (URL → Dynamic), so I could return it by myself or add a field for inidivual links after the post url?


Being able to return a function for links would be really helpful for me as well.

Was hoping to dynamically append a query parameter to a URL that was set in an ACF field.