How can I set a custom URL for Pageviews?

Hi! Regarding this solution, I guess the only way to do this would be to run the setCustomUrl in the source code? Any thoughts on whether there might be a feature coming that would allow this in the UI?

Like with customTask in UA and the Config var in GA4, it would be nice to be able to control event_url and referrer_url before they get sent to Piwik.