This issue has been created
 
 
Guided Tour / cid:jira-generated-image-avatar-71b8112d-e3b2-463c-a20e-6f6553460690 GUIDEDTOUR-28 Open

The Guided Tour scripts are loaded and the tours are fetched on every page, even when no tour is active

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-82cc9ba9-784f-4c82-ae80-e2d294348c8f Charpentier Lucas created this issue on 08/Oct/26 14:56
 
Summary: The Guided Tour scripts are loaded and the tours are fetched on every page, even when no tour is active
Issue Type: cid:jira-generated-image-avatar-71b8112d-e3b2-463c-a20e-6f6553460690 Bug
Affects Versions: 0.1
Assignee: Unassigned
Created: 08/Oct/26 14:56
Priority: cid:jira-generated-image-static-major-043e6193-4057-41a7-9327-b9e793238a69 Major
Reporter: Charpentier Lucas
Description:

The Guided Tour UI extension adds the guidedtour-webjar script to every page through org.xwiki.platform.template.header.after, and the widget then fetches the tours and their tasks over REST, whether or not any tour is active.

Steps to reproduce

  1. Install Guided Tour 0.1 with the default tours
  2. Edit every tour under GuidedTour.Tours and set "Is active" to "No"
  3. Open any page with the browser network tab open

Expected

No Guided Tour script or REST request is loaded, and no widget is displayed.

Actual

The following requests are made on every page:

  • /webjars/wiki%3Axwiki/guidedtour-webjar/0.1/index.es.js
  • /webjars/wiki%3Axwiki/guidedtour-node-ui/0.1/index.es.js
  • /rest/guidedTour/tours
  • /rest/guidedTour/tours/<tour>/tasks, once per tour, including the inactive ones

An empty "Guided Tours" widget is also displayed in the bottom-right corner.

This is the same problem as XWIKI-21823 on the Tour application.