integreat-cms icon indicating copy to clipboard operation
integreat-cms copied to clipboard

Specify error message for double slugs

Open ulliholtgrave opened this issue 2 years ago • 2 comments

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

grafik

ulliholtgrave avatar Jun 01 '22 14:06 ulliholtgrave

if I understand correctly. we must showing an error message if the slug already exists. And propose a new slug to the user.

mael-fosso avatar Oct 25 '22 15:10 mael-fosso

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.

timobrembeck avatar Oct 25 '22 15:10 timobrembeck

For more context information about this issue, see #1646

timobrembeck avatar Nov 04 '22 15:11 timobrembeck