4 ms·
Nah, it’s just not joining URLs correctly, and so is trying to load the wrong stylesheet: Base URL: https://news.ycombinator.com/item?id=25276193
by chrismorgan 6y ago
Nah, it’s just not joining URLs correctly, and so is trying to load the wrong stylesheet:
Base URL: https://news.ycombinator.com/item?id=25276193
Relative URL: news.css?7xnRK0pv8n1Oh7woNqhn
Correct resolved URL: https://news.ycombinator.com/news.css?7xnRK0pv8n1Oh7woNqhn
Actual resolved URL: https://news.ycombinator.com/item?id=25276193/news.css?7xnRK0pv8n1Oh7woNqhn
- steviedotboston 6y agoGood catch! I'll try to fix this one
- chrismorgan 6y agoTwo things to make sure you’re doing: • Parse according to the URL Standard: https://url.spec.whatwg.org/ https://url.spec.whatwg.org/ • Use the correct base URL: https://html.spec.whatwg.org/#document-base-url; https://html.spec.whatwg.org/#document-base-url; this means largely “take the first base element with an href attribute, if it exists; if so, resolve its href attribute relative to the document URL; otherwise, use the document URL”.