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

Updating Entry Does Not Update Element #2092

Open
mattcdavis1 opened this issue Nov 6, 2017 · 6 comments
Open

Updating Entry Does Not Update Element #2092

mattcdavis1 opened this issue Nov 6, 2017 · 6 comments

Comments

@mattcdavis1
Copy link

mattcdavis1 commented Nov 6, 2017

Description

I created a single with a URI of firm/philosopy (mispelled). When i noticed the page wasn't found and realized it was because of the misspelling i updated the single uri to firm/philosophy. The update update the craft_sections table but did not update the craft_elements_sites table so the old (misspelled) uri remained and i was unable to update it via the CP.

Steps to reproduce

  1. Create a single
  2. Change the URI of the single
  3. Craft will not route to the updated URI

Additional info

  • Craft version: Craft CMS 3.0.0-beta.30
  • PHP version: 7.0.15
  • Database driver & version: MySQL 5.5.57
@brandonkelly
Copy link
Member

What is the URI format in your single’s section settings?

@mattcdavis1
Copy link
Author

Here's a screenshot of the settings for the page in question: https://goo.gl/F6fErv

@brandonkelly
Copy link
Member

Yeah so your URI is set from there – you can see it’s currently hard-coded as firm/philosophy. If you want the slug to be used in the URI, include a {slug} tag in there somewhere.

@brandonkelly
Copy link
Member

Actually, I don’t think that’s possible. You just need to hard-code the URI you want in there.

@mattcdavis1
Copy link
Author

mattcdavis1 commented Nov 6, 2017

That's the way i had it and it didn't work. What are you saying to do different? What is the correct way to change the URI of a single?

@brandonkelly
Copy link
Member

Sorry, I misunderstood your original post. Will look into it…

@brandonkelly brandonkelly reopened this Nov 6, 2017
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