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
Since the actual subpath resolution happens after the element has been saved, it's not possible to add any validation errors or bail out of global set (which is an element) saving.
So, throwing an exception is the most appropriate way - if it looked like the global set had saved and an error message (which would be hacky to add), was not noticed, it might be pretty misleading to the user.
Taking all of that into account, it's probably best to leave the behavior as it is currently.
Description
This is not a huge problem, just an ungraceful degradation relating to bad user input.
When adding a field to a global set, the control panel gives an error:
Could not resolve the subpath "branding/{siteHandle}"
The immediate solution (for me) was to correct to
branding/{site}
and it works fine, but I thought you'd want craft to check for this more gracefully.Steps to reproduce
Additional info
Domain: http://localhost
The text was updated successfully, but these errors were encountered: