You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 9, 2023. It is now read-only.
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):
Statamic Version [e.g. 2.11.20]
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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):
The text was updated successfully, but these errors were encountered: