2

Each time I try to rename a slug within an entry, the page refreshes, but the slug is getting a -1 appended.

The slug I want is: forms. The slug I get after saving is: forms-1.

I've checked through all the other entries and there's no duplicate slug.

Any ideas?

3
  • Im pretty sure that craft will do this by default since you aren't using a dynamic slug like {title} or {id} – mcclaskiem Apr 26 '16 at 15:01
  • But I can manually update the slug to forms-something-else, but not just forms. – Matt Ellis Apr 26 '16 at 15:18
  • Is forms the name of the section? – mcclaskiem Apr 26 '16 at 16:03
3

You can connect to your database and run:

SELECT * FROM craft_elements_i18n WHERE slug = 'forms';

to see what other element is already using the slug forms.

To see what type of element it is (Entry, Asset, etc.), cross reference the elementId column of the result with the id column in the craft_elements table.

1
  • 1
    Note: If you're using Craft 3, the table you need to search it "craft_elements_sites". So the query would be SELECT * FROM craft_elements_sites WHERE slug = 'forms'; – Alex Roper Nov 26 '19 at 7:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.