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

{id} not parsed in URI on initial save #2922

Closed
chasegiunta opened this issue May 24, 2018 · 0 comments
Closed

{id} not parsed in URI on initial save #2922

chasegiunta opened this issue May 24, 2018 · 0 comments

Comments

@chasegiunta
Copy link
Contributor

Description

Upon creating a new entry in sections with {id} in their URI (issues/{id}), the twig won't be parsed (at least in my case) - leaving the result in the uri column in the element_sites table as issues.

This leads to inevitable "Could not generate a unique URI based on the URI format." upon trying to save new entries.

This also only applies on initial saves/entry creation. Re-saving the entry will save the correct URI issues/12

Steps to reproduce

  1. Create new channel section with the title "Issues" and entry URI format as issues/{id}
  2. Save new blank entry in that section.
  3. Check element_sites table to see resulting URI
  4. Try to create new entry. Observe "Could not generate a unique URI based on the URI format."
  5. Re-save first entry.

Additional info

  • Craft version: 3.0.9
  • PHP version: 7.1.17
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

1 participant