Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support #anchor redirect refresh #1172

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Conversation

fperucic
Copy link
Contributor

Solves this problem:

Url is /items-list and it has a hx-post form on in to allow adding new items.

When form receives a response with HX-Redirect: /items-list#item-10 header, the current location does not reload since it is the same url.

This pull request solves this by allowing user to combine HX-Redirect and HX-Refresh headers so the full page is reloaded, and it automaticaly scrolls to the newly added #item-10

@alexpetros alexpetros added the ready for review Issues that are ready to be considered for merging label Sep 1, 2023
@1cg 1cg merged commit 7296c0d into bigskysoftware:master Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Issues that are ready to be considered for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants