Slug Field not updating on Update #4754
-
Description:Hello, if we update a resource with a field (title) and a slug field (title_slug) connected to the field (title), updating the field doesn't update the slug field. I would expect this behavior because it updates on key-up on creating an entry. Detailed steps to reproduce the issue on a fresh Nova installation:1.) Make a model (Blog) with 2 fields (title and title_slug) // public function fields(NovaRequest $request)
[...]
Text::make(__('Title'), 'title')
->rules('required', 'max:255', 'string'),
Slug::make(__('Title slug'), 'title_slug')
->from('title'),
[...] 3.) Switch to the Nova backend and create an entry on the Blog resource expected behavior: current behavior: Another topic with the slug field: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The existing behavior is expected and coded as such at the moment. Slugs such as those used in a URL are considered unique and should require manual editing if needed. |
Beta Was this translation helpful? Give feedback.
The existing behavior is expected and coded as such at the moment. Slugs such as those used in a URL are considered unique and should require manual editing if needed.