Skip to content

Move static resources to the public directory#125

Open
giroletm wants to merge 1 commit intopluginsGLPI:mainfrom
giroletm:dev/giroletm
Open

Move static resources to the public directory#125
giroletm wants to merge 1 commit intopluginsGLPI:mainfrom
giroletm:dev/giroletm

Conversation

@giroletm
Copy link
Copy Markdown

Starting GLPI 11.0.0, static resources for plugins must be placed in the public directory.

The resources pointed by the Hooks::ADD_JAVASCRIPT, Hooks::ADD_CSS, Hooks::ADD_CSS_ANONYMOUS_PAGE, Hooks::ADD_JAVASCRIPT_MODULE_ANONYMOUS_PAGE and Hooks::ADD_JAVASCRIPT_ANONYMOUS_PAGE are static resources and are therefore affected by this change.

As a result, loading the example plugin in its current state in the latest version of GLPI (11.0.6 as of writing) results in the requests that try to fetch its CSS and JS files to return a 404.

This PR moves these files in the public folder in order to fix it.

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.

1 participant