Skip to content

Fix: use CFG_GLPI root_doc for dropdownAuthorization AJAX path#142

Open
RHmais-IM wants to merge 1 commit into
pluginsGLPI:mainfrom
RHmais-IM:RHmais-IM-patch-1
Open

Fix: use CFG_GLPI root_doc for dropdownAuthorization AJAX path#142
RHmais-IM wants to merge 1 commit into
pluginsGLPI:mainfrom
RHmais-IM:RHmais-IM-patch-1

Conversation

@RHmais-IM

Copy link
Copy Markdown

This PR fixes the issue described in #141.

The AJAX call to dropdownAuthorization.php used a hardcoded absolute path
(/plugins/oauthimap/...), which breaks on installations where GLPI is not
at the domain root. This change uses CFG_GLPI['root_doc'] instead, consistent
with how paths are handled elsewhere in GLPI core.

Tested on GLPI 11.0.8, installation in a subdirectory (/glpi/public).

Fixes hardcoded absolute path that breaks on subdirectory installs of GLPI.
See issue pluginsGLPI#141
@stonebuzz

Copy link
Copy Markdown
Contributor

can you adapt CHANGELOG.md ?

@stonebuzz
stonebuzz requested review from Rom1-B and stonebuzz July 17, 2026 12:37
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