steirico / kirby-plugin-custom-add-fields

Custom fields for Kirby's add dialog.
MIT License
36 stars 4 forks source link

Update routes #30

Closed nilshoerrmann closed 4 years ago

nilshoerrmann commented 4 years ago

This pull request ensure the plugins listens to the new default routes used by Kirby.

Fixes #28

steirico commented 4 years ago

Thanks for your contribution.

This PR will makes future versions of the plugin incompatible with kirby prior to v3.4.3.

I would prefer a fix that is backward compatible.

nilshoerrmann commented 4 years ago

Right, didn't think about that. What about:

                'pattern' => [
                    'site/children/blueprints/add-fields',
                    'site/blueprints/add-fields',
                    'pages/(:any)/children/blueprints/add-fields',
                    'pages/(:any)/blueprints/add-fields',
                ]
steirico commented 4 years ago

LGTM!

nilshoerrmann commented 4 years ago

Great, I just updated the routes.