bigskysoftware / bigskysoftware/htmx

make the base of URL constructor configurable?

Open
#3,212 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
49.4k
Forks
1.7k
Avg merge
3d 22h
Merged PRs (30d)
30

Description

I have a rather niche use case (and will probably deploy a fork for now) where I'm trying to use HTMX out of an iframe with `[href=about:srcdoc]`. So when HTMX tries to construct any URL at all it's expanded to `new URL("the path", "about:srcdoc")` which obviously isn't a valid url.

Would it be possible to add a config option to specify the base parameter?

Like
```typescript
urlBase?: undefined | string | "root"
```

where `"root"` would have the special meaning of using the root windows url.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.