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

Slugs are generated for Singles on creation, but not updated on edit. #3758

Closed
chasegiunta opened this issue Jan 31, 2019 · 1 comment
Closed

Comments

@chasegiunta
Copy link
Contributor

Description

Even though slugs aren’t technically used by singles, that attribute is still created and populated on creation. A bit nice because if you’re finding an entry, you can use the same API (slug => 'xyz'), no matter which section type.

But, that Single's slug isn't updated whenever you edit it's title or URI.

This may not be a bug at all, but more of a question on whether it should be updated or not, or at least something to note if #3368 ever happens. It just seems odd that the attribute lives there but is never touched after creation.

Steps to reproduce

  1. Create single.
  2. View the slug attribute for that single.
  3. Edit single.
  4. Observe unchanged slug.

Additional info

  • Craft version: 3.1.6
  • PHP version: 7.1.24
@brandonkelly
Copy link
Member

We’re planning on making Single entry slugs editable in Craft 3.2 (#3368) so this won’t be awkward anymore at that point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants