pedroborges / kirby-autogit

⬢ Saves every change made via Kirby Panel to a Git repository
149 stars 23 forks source link

Use Kirby's panel URL in widget #24

Closed snorpey closed 7 years ago

snorpey commented 7 years ago

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.

pedroborges commented 7 years ago

Thanks a lot for this contribution @snorpey!