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
Allow links to replace history state instead of pushing a new state #460
Comments
@Mamboleoo, yeah, that's indeed a good case scenario and I think it's something we can add |
@Mamboleoo I love this idea! +1 for that 😉 |
@Mamboleoo perhaps you want to work on a PR? 🤓 |
@Mamboleoo could you try with |
@thierrymichel Thanks for the update 🙀 If I get it right from the commit, I need to add a |
@Mamboleoo absolutely! :) |
I just implemented the new version on my current project and it's working like a charm! 💖 |
Hi guys, |
Hi,
I wanted to know if it would be an interesting feature to allow some links to replace the current browser history state instead of pushing it.
For example, when you're on a product page on Amazon you can switch from one colour to another one without pushing new entries in your browser history.
I'm currently working on a project with a similar situation like the Amazon one and it would be nicer for our users to not have to press the Back button multiple time when they want to get back to the 'previous page'.
I think it could work either with a data-attribute like (
data-barba-history="replace"
) or with an option on the init phase similar to theprevent
function.What do you think of such feature?
The text was updated successfully, but these errors were encountered: