bigskysoftware / bigskysoftware/htmx

Add the `pushUrl` option for `htmx.ajax()` calls

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

Description

Currently, there's no way to configure `hx-push-url` programatically using `htmx.ajax()`. It would be useful to have a `pushUrl` option there as well.

As far as I know, the only solutions are sending a `'HX-Push-Url'` header in the response or using `{ source: element }` where the referenced element has a `hx-push-url` attribute. The first is hard to maintain, and the second is quite hackish.

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.