bnomei / kirby3-autoid

Automatic unique ID for Pages, Files and Structures including performant helpers to retrieve them. Bonus: Tiny-URL.
https://forum.getkirby.com/t/kirby3-autoid-plugin/23572
MIT License
80 stars 8 forks source link

Fix error thrown for files, which are children of `$site` #54

Closed fabianmichael closed 3 years ago

fabianmichael commented 3 years ago

Use parent() instead of page(), because it also works for site’s files.