distantnative / retour-for-kirby

Kirby CMS plugin to manage redirects and track 404s right from the Panel
https://distantnative.com/retour-for-kirby/
MIT License
135 stars 15 forks source link

Accept closure for config storage path #345

Closed tobimori closed 7 months ago

tobimori commented 8 months ago

Not sure if this is already possible, but from looking at the docs it doesn't seem like so! Would be very helpful as the relative path turned out to be stored in /public on a different setup and not in the index/root one.

distantnative commented 7 months ago

At first I didn't remember either, but now looking at the code I think this should already work: https://github.com/distantnative/retour-for-kirby/blob/main/src/Retour/Config.php#L41-L46

Or maybe I am not understanding you/your use case fully.

tobimori commented 7 months ago

Honestly I also don't remember what the issue was when I wrote this. I'll close it for now.