yari
yari copied to clipboard
Double slash in URL prevents demos from loading
Summary
It’s easy to end up with a trailing double slash when copy-pasting URL parts. And it stops demos from loading.
URL
https://developer.mozilla.org//en-US/docs/Learn/CSS/Building_blocks/Values_and_units#frame_line_height_units
Reproduction steps
- Go to developer.mozilla.org//…/Values_and_units
- Go to developer.mozilla.org/…/Values_and_units
- Compare rendering of the frame with demo
Expected behavior
Loaded demo
Actual behavior
Empty frame
Device
Desktop
Browser
Firefox
Browser version
Stable
Operating system
Mac OS
Screenshot
No response
Anything else?
No response
Validations
- [X] I have read the Community Participation Guidelines.
- [X] I have verified that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] I have checked that this is a concrete bug. For Q&A open a GitHub Discussion.
FWIW:
% curl -I https://developer.mozilla.org//en-US/docs/Learn/CSS/Building_blocks/
HTTP/2 302
location: /en-US/docs/Learn/CSS/Building_blocks
% curl -I https://developer.mozilla.org//en-US/docs/Learn/CSS/Building_blocks
HTTP/2 200
The problem seems to be that our Cloud Function receives the normalized URL, so we cannot tell whether the user requested the wrong URL.