Fix bad url linter false positives
Created by: jhchabran
This fixes a few false positives that were caused by the bad URL linter running on testdata and a hard to parse generated URL.
Relates to #31612 (closed)
Test plan
- local test run of the script