A Kirby plugin, protecting panel user from creating page URL in conflict with routes and existing folders.
Version tested: 3.9.0, 4.0.1, 5.0.4
Download and copy this repository to /site/plugins/kirby-route-protect.
git submodule add https://github.com/andreasnymark/kirby-route-protect.git site/plugins/kirby-route-protect
The plugin automatically picks all routes in the project, both custom and Kirby routes. You can add your own in site/config/config.php
return [
'andreasnymark.kirby-route-protect' => [
'slugs' => [ 'protected-slug', 'another-protected-slug' ],
],
]
];
As of v1.2.0, the plugin also checks for existing folders.
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
You are prohibited from using this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.
