[BUGFIX beta] replaceURL checks of URL has actually changed

Fixes #4054