Our domain name changed, where do I edit the hostname?

To fix that error, try adding the scheme to the url. So if your remap command was
discourse remap talk.foo.com talk.bar.com
instead try
discourse remap https://talk.foo.com https://talk.bar.com

Uploads no longer use the full URL, they’re something like ![116ae217fb1f57c4bd6058915c5db8abee9f0cd7|690x458](upload://2u570X7kQiPJQaJD1Bd8MLDHDNB.jpeg). Links do use the full domain as that’s how most people insert them into the composer, by pasting an absolute URL.