Comment Comment by yencabulator You can use http://invalid for a URL that should never be valid.https://en.wikipedia.org/wiki/.invalidBut for a web app, you probably want to use the current location as the base. new URL("/blah", window.location) parent yencabulator 11 days ago
https://en.wikipedia.org/wiki/.invalid
But for a web app, you probably want to use the current location as the base.