Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: slug validator error message #16

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

djohalo2
Copy link
Member

@djohalo2 djohalo2 commented Jan 17, 2024

The unique slug validator usually makes sense, but it is vague when there is another page with the same slug published with an updated slug in draft. The page tree will always reflect the current state (so draft over published) and therefore it is not clear which page is the one that is causing the unique validation error. To improve this flow, the validation error is more specific and displays the slug of the draft page in question if relevant.

@djohalo2 djohalo2 requested a review from tstikvoort January 18, 2024 08:16
@djohalo2 djohalo2 merged commit 117e371 into main Jan 22, 2024
@djohalo2 djohalo2 deleted the fix/slug-validator-error-message branch January 22, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant