I got the same problem as the owner of the thread.
It is solved by using WP Migrate Lite, in which also replaces serialized strings in the database.
Which then also solves the Page Link component in ACF.
But my problem, is that on local machine, I use port 8080 and 3000 (3000 for webpack/hmr-tooling).
So this is still causing problem locally, but your root-relative snippet is a dream to fix this.
Does this filter hook up when you save your post?
And should it not be much more efficient to use the php to figure out the current HOSTNAME (domain) instead of hardcoding your domain?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!