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

Replace mode #7

Open
hsablonniere opened this issue May 6, 2016 · 1 comment
Open

Replace mode #7

hsablonniere opened this issue May 6, 2016 · 1 comment

Comments

@hsablonniere
Copy link
Member

Maybe we should support a replace mode for hashes.

I've been creating/using HTML5 based slide decks for years with DZSlides, reveal and bespoke. They all modify the current URL hash. It has pros and cons. It's a great feature to :

  • Share a link pointing to a specific slide
  • Keep the state if you refresh

But I feel like it's polluting my browser tab history. If I navigate to a slide deck via a link and then pass through slides, it becomes very hard to go back to the origin website.

It's the same with HTML5 slide decks embedded in iframes for presenter console purposes or embedding on classic websites. The history of the iframe messes up with the main window's history.

I propose that this plugin provides a replace on/off switch. On each slide navigation, the current history/state would be replaced (and not added). This would allow to keep all pros and drop the annoying parts.

WDYT?

@mojavelinux
Copy link
Contributor

This seems to be what PR #3 is proposing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants