samuelet / indexmenu

A dokuwiki plugin to show a customizable and sortable index for a namespace.
http://dokuwiki.org/plugin:indexmenu
GNU General Public License v2.0
45 stars 43 forks source link

treenew: DokuWiki basedir option is not respected #283

Closed choules closed 9 months ago

choules commented 9 months ago

Looking for a workaround on issue #282, we have tried to switch over to the newtree option. But with this option we did not see any images. Looking at the browser console we could see that the referenced images were not found, because the given URL was looking for files at the root level of our webserver.

We have installed DokuWiki at https://myserver/dokuwiki, so the image would be found at https://myserver/dokuwiki/lib/plugins/indexmenu/scripts/fancytree/skin-win7/loading.gif (which actually loads fine), but the CSS file is referencing only https://myserver/lib/plugins/indexmenu/scripts/fancytree/skin-win7/loading.gif

Checking the source code I have not found a reference to DOKU_BASE anywhere in the treenew code.

choules commented 9 months ago

See my comment on #282, the issue is not present any more after reverting to a manually downloaded v2023-12-14 release, as well.

Klap-in commented 9 months ago

Thanks for reporting! in javascript I had already implemented support for basedir, but I did not think of the css. If you found more of them please tell, as my test setup has no basedir set at the moment, so difficult to test.

choules commented 9 months ago

This fix works for me, as well. No other issues found so far.

Klap-in commented 9 months ago

Thanks for the feedback.