Steps to replicate the issue (include links if applicable):
- Navigate to https://meta.wikimedia.org/wiki/Special:QrCode
- Enter URL, for example https://meta.wikimedia.org/wiki/Main_Page
- Submit
What happens?:
A broken image appears. Closer inspection reveals that there's undefined instead of SVG code - both in the data URL in the <img> and when downloading the file. Precisely, the data URL is data:image/svg+xml,undefined.
What should have happened instead?:
An image with the code should appear
Software version (skip for WMF-hosted wikis like Wikipedia):
Tested on Commons and Meta with different URLs.
Other information (browser name/version, screenshots, etc.):
There's no error nor warning in the browser console. Tested in Edge 121 (Chromium-based)