integreat-cms
integreat-cms copied to clipboard
Specify error message for double slugs
Motivation
It is not possible to manually change the page-slug to a slug that is already existing. Right now, we are only showing some a successful message and just revert the slug, which results in confusion.
Proposed Solution
Add an error/warning message to signal that this slug is already used and a new slug was taken.
Additional Context
if I understand correctly. we must showing an error message if the slug already exists. And propose a new slug to the user.
If I understand correctly, we must showing an error message if the slug already exists.
An error is maybe a bit much (since the page was successfully saved), but a warning would be good, yes.
And propose a new slug to the user.
No, the new slug is automatically set during the clean method, so no need to change this. Just tell the user that the slug was taken and to which value it was automatically changed.
For more context information about this issue, see #1646