Johan Martinsson
Johan Martinsson

Reputation: 347

Reveal.js Sharable links to specific slide / Keep current slide on reload

Using Reveal.js, I can't find any documentation of this feature. I'm positive I've seen this somewhere. And I would sure like to be able to reload the page and not have to navigate through the entire deck every time.

Does it exist as a hidden feature? Does anyone know of a "plugin" or patch?

Upvotes: 2

Views: 293

Answers (2)

Drag13
Drag13

Reputation: 5988

The update from 2022 relevant for Reveal.JS 4.3.1:

Trick with history no longer works, use hash instead:

 new Reveal({
    plugins: [Markdown, Highlight],
    hash: true,
  }).initialize();

Link to the documentation

Upvotes: 1

Cito
Cito

Reputation: 5613

The trick is to set history: true in the configuraton at the end of the index.html page:

Reveal.initialize({
    history: true,
    ...

Upvotes: 2

Related Questions