From 6f71c95f55b725e1dff2083d63162669f7062071 Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Mon, 12 Apr 2021 15:36:39 +0200
Subject: [PATCH] Revert "fix tour load first page"

This reverts commit 6fe46b6813f826d0c7b0d494611435ce1674bf35.
---
 src/core/js/tour.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/core/js/tour.js b/src/core/js/tour.js
index b72087f9..5eebd0d5 100644
--- a/src/core/js/tour.js
+++ b/src/core/js/tour.js
@@ -686,6 +686,10 @@ var tour = new function () {
             if (! target[0]) {
                 return; // element to attach to not available; can't open
             }
+            if (this.get_next()) {
+                logger.debug(`Set next page in session store to `, this.get_next().config.id);
+                sessionStorage["tour-page-open-next"] = this.get_next().config.id
+            }
             target.on('hidden.bs.popover', (e) => {
                 button[0].dispatchEvent(tour.close_page_event);
             });
-- 
GitLab