Skip to content

Fix broken "disable demo mode" link when GLPI is not served at web root - #340

Merged
btry merged 1 commit into
developfrom
fix/add-prefix-on-url
Aug 28, 2026
Merged

Fix broken "disable demo mode" link when GLPI is not served at web root#340
btry merged 1 commit into
developfrom
fix/add-prefix-on-url

Conversation

@Mary-Clb

Copy link
Copy Markdown
Contributor

$exit_demo_url in Report::showInstantReport() was hardcoded as an
absolute path (/plugins/carbon/front/report.php?...), breaking the
"Disable demo mode" link on installs not served at the web server root.

Prefix it with $CFG_GLPI['root_doc'], matching the existing pattern
used a few lines below for the header/footer images.

@Mary-Clb Mary-Clb self-assigned this Aug 28, 2026
@btry
btry merged commit e798c16 into develop Aug 28, 2026
4 checks passed
@btry
btry deleted the fix/add-prefix-on-url branch August 28, 2026 07:27
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

Successfully merging this pull request may close these issues.

2 participants