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

Using {type} in a section's URL format, changing the handle doesn't update existing URLs #15

Closed
angrybrad opened this issue Jan 29, 2017 · 0 comments
Labels
bug enhancement improvements to existing features severity:minor Cosmetic issues or bugs with simple workarounds

Comments

@angrybrad
Copy link
Member

Environment:

  • Craft version: 3.x
  • PHP version: 7.x
  • Database driver & version: n/a
  • Plugins & versions:

Description:

Scenario:
I've got a channel with the URL format set to 'news/{type}/{slug}'. This would produce a URI like '/news/press/my-news-article'.

I then decide to change the entry type title and handle to 'release'. I'd expect the URI to be '/news/release/my-news-article' however it hasn't changed from the original URI.

Workaround:
My short-term fix was to change the URL format to 'news/{slug}' then back to 'news/{type}/{slug}' to trigger the resave elements task. It's not a huge issue for us, but others might not understand how to fix it.

Might be worth triggering a re-save elements task automatically in this specific case.

@angrybrad angrybrad added bug enhancement improvements to existing features severity:minor Cosmetic issues or bugs with simple workarounds labels Jan 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug enhancement improvements to existing features severity:minor Cosmetic issues or bugs with simple workarounds
Projects
None yet
Development

No branches or pull requests

1 participant