Expected behavior
It should be allowed in the CP to edit Taxonomy with custom localized routes set.
Cause of the problem
In the statamic\resources\views\taxonomies\edit.blade.php it is assumed that a custom route should be a string
<input type="text" name="route" class="form-control" value="{{ $group->route() }}" />
It should be changed to work in a similar way to collection edit form statamic\resources\views\collections\edit.blade.php where there is a custom Vue Component used which allows to edit localized custom routes
<routes-fieldtype :data="{{ json_encode($routes) }}" name="routes"></routes-fieldtype>
Same applies to Taxonomy create form.
Environment details (please complete the following information):
Describe the bug Localized taxonomies routes in routes.yaml cause php error in taxonomies/edit.blade.php
To Reproduce Steps to reproduce the behavior:
Screenshots PHP error screenshot 1 PHP error screenshot 2
Expected behavior It should be allowed in the CP to edit Taxonomy with custom localized routes set.
Cause of the problem In the
statamic\resources\views\taxonomies\edit.blade.php
it is assumed that a custom route should be a string<input type="text" name="route" class="form-control" value="{{ $group->route() }}" />
It should be changed to work in a similar way to collection edit form
statamic\resources\views\collections\edit.blade.php
where there is a custom Vue Component used which allows to edit localized custom routes<routes-fieldtype :data="{{ json_encode($routes) }}" name="routes"></routes-fieldtype>
Same applies to Taxonomy create form.
Environment details (please complete the following information):