-
Notifications
You must be signed in to change notification settings - Fork 41
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
Using htmz without updating browser history #2
Comments
I discovered this by accident. In the Apparently, removing an iframe deletes its browser history from your global browser history. So the As for a non-accidental solution, unfortunately I don't have any idea other than asking whatwg for a native HTML way. Edit: The official ask: whatwg/html#6501 |
Maybe the iframe could destroy and recreate itself after every action? Interestingly, that would solve #13 as well I think |
@drmercer indeed, but I don't think it's a good idea performance-wise. |
Explicitly destroying & recreating the iframe sounds feasible Maybe even simply removing & reinserting the node instead of recreating from scratch as suggested here https://stackoverflow.com/a/25365973/3144156 I think I might need a separate page to collect these extensions. |
Why not just use |
I just tried |
I've added this solution in the brand new Extensions page! |
Brilliant! Thank you so much @Kalabasa 💜 The page looks great too |
Hello!
Thanks for this library! It's very cool.
Do you have a recommendation or an extension for not adding to the browser history when clicking on htmz links? I'd like my back button to (for example) go to what my user sees as the previous page rather than resetting a form to a previous state.
Thanks,
Louis
The text was updated successfully, but these errors were encountered: