I think the only common case where MusicBrainz will have a query in the URL is if Picard is open. it should be safe to remove everything after the ? on MusicBrainz URLs
example
https://harmony.pulsewidth.org.uk/release/actions?release_mbid=4d8917e9-d17f-42b9-9bc2-917cd4d31b5e?tport=8000