Seems like this odd behaviour appears when the build configuration is set to "Debug", you can set it to "Release" to prevent the injection of "https://example.com" on userActivity.webpageURL. I can't find a way to disable it on "Debug" rather than injecting more code to handle that case.
I hope someone at Apple gives a real answer.
Topic:
App & System Services
SubTopic:
General
Tags: