Comment

Comment by jfhr

> You're supposed to address this by adding the base URL on the end, but then correctly obtaining that can be brittle.

Isn't that what document.baseURI is for? At least that's my understanding:

new URL("/whatever", document.baseURI)

parent jfhr 2 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton