getgrav / grav-plugin-admin

Grav Admin Plugin
http://getgrav.org
MIT License
355 stars 223 forks source link

Not including a leading slash in Administrator Path causes navigation issues #2336

Open clarjon1 opened 1 year ago

clarjon1 commented 1 year ago

Version: Admin Panel v1.10.38

If a user leaves out a leading slash in the Administrator Path setting, this can allow the navigation to start to act up as the link generation seems to assume that it should use a relative directory path based on the current URL

Example:

If a user goes to modify the admin panel plugin's settings from the web ui: User clicks on Plugins and gets the list of plugins, the url is [sitename]/[adminpath]/plugins User clicks on Admin Panel plugin in the list, url becomes [sitename]/[adminpath]/[adminpath]/plugins/admin image

If user then clicks on Plugins in the side nav again to try to return to the list, url becomes [sitename]/[adminpath]/[adminpath]/plugins/[adminpath]/plugins image

Recommendations: