News for hackers. Stuff that matters.
Re:Show HN: µJS, a 5KB alternative to Htmx and Turbo with ze... by amluto on Sunday March 08, 2026 @02:42PM (#47299838)
I have a project that has ordinary internal links, but they’re all relative because the entire project can be based at a variable path.

If I were to adopt µJS, though, I would probably want to opt in on a per-link basis.

Re:Show HN: µJS, a 5KB alternative to Htmx and Turbo with ze... by amaury_bouchard on Sunday March 08, 2026 @06:10PM (#47302126)
That's a valid use case. For opt-in per link, you can disable global link interception with `mu.init({ processLinks: false })` and then add `mu-url` explicitly to the links you want µJS to handle. For the variable base path scenario, the `urlPrefix` option in `mu.init()` might also help. It prepends a prefix to all fetched URLs.

That said, proper support for relative paths is on the roadmap.