Reveal.js: Is it possible to stay on current slide after reload during development?

Created on 9 Jun 2018  路  4Comments  路  Source: hakimel/reveal.js

While I am developing a presentation, I would like to stay on the current working slide. But after saving changes page is reloaded and presentation is moved to the first slide. It is very annoying. Is there any way to force reveal.js to stay on the current working slide during development? Thanks.

Most helpful comment

Just set history to true. Then it should show it to you and reload to the same slide via #/slide number.

All 4 comments

Just set history to true. Then it should show it to you and reload to the same slide via #/slide number.

Excellent, you saved my life :smile:

You just saved mine as well! Thank you @rugk!

There's a new hash config option that you use to address this as well. history: true means each slide change is pushed to browser history. hash: true gives you unique URLs for each slide without pushing to the browser history.

I've updated the default index.html to include hash: true.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OscarDeDios picture OscarDeDios  路  3Comments

ablakey picture ablakey  路  3Comments

bamos picture bamos  路  3Comments

togakangaroo picture togakangaroo  路  4Comments

berteh picture berteh  路  5Comments