I noticed that the panel widget wouldn't work properly if I installed kirby in a subdirectory (instead of the document root).
Currently, the URL for the $.post call is hardcoded to /panel/autogit. This patch uses the panel URL that is provided by Kirby (panel()->urls->index) and makes the widget work, even if Kirby is installed in a subdirectory.
Hey @pedroborges,
thank you for creating this plugin!
I noticed that the panel widget wouldn't work properly if I installed kirby in a subdirectory (instead of the document root).
Currently, the URL for the
$.post
call is hardcoded to/panel/autogit
. This patch uses the panel URL that is provided by Kirby (panel()->urls->index
) and makes the widget work, even if Kirby is installed in a subdirectory.