Steps to replicate the issue (include links if applicable):
What happens?:
What should have happened instead?:
URL should not contain undefined items.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
This is yet another behavior change caused by rMW2af1c3c901a6: build: Update eslint-config-wikimedia to 0.28.1 and autofix. More specifically https://phabricator.wikimedia.org/source/mediawiki/change/master/resources/src/mediawiki.Uri/Uri.js;2af1c3c901a6117fe062e1fd88c0146cffa1481d