-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Closed
Labels
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/URL/href
What specific section or headline is this issue about?
console.log of url.href needs a trailing /
What information was incorrect, unhelpful, or incomplete?
In the example:
const url = new URL(
"https://developer.mozilla.org/en-US/docs/Web/API/URL/href",
);
console.log(url.href); // Logs: 'https://developer.mozilla.org/en-US/docs/Web/API/URL/href'
the logs of url.href should include a trailing /.
What did you expect to see?
This is what actually happens:
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/api/url/href - MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/URL/href
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/url/href/index.md
- Last commit: 4de6f76
- Document last modified: 2024-03-06T06:23:15.000Z
Reactions are currently unavailable