Bug report
Describe the bug
Say you have a URL alias for a page which has Generate automatic URL alias set to false. So you have overwritten the URL with a custom path, not generated by a pattern.
If you now update that URL alias to set generated to true, it doesn't automatically update the path the be generated. Instead the old custom URL will still be present in the database.
Only when you update the corresponding page is the URL alias updated.
Steps to reproduce the behavior
- Setup your Strapi application
- Install the Webtools plugin
- Create a content type "Article"
- Enable Webtools for this content type
- Create an Article and save it
- Now click the "Edit URL alias" button
- Uncheck the "Generate automatic URL alias"
- Put in a custom URL, something like
/this-is-a-custom-url
- Save the alias
- Again click the "Edit URL alias" button
- Now check the "Generate automatic URL alias" checkbox
- Save the alias
- See the issue in the DB where the path of the alias is still
/this-is-a-custom-url
Expected behavior
The URL alias should regenerate it's path directly when the generated status changes.
Bug report
Describe the bug
Say you have a URL alias for a page which has
Generate automatic URL aliasset to false. So you have overwritten the URL with a custom path, not generated by a pattern.If you now update that URL alias to set
generatedto true, it doesn't automatically update the path the be generated. Instead the old custom URL will still be present in the database.Only when you update the corresponding page is the URL alias updated.
Steps to reproduce the behavior
/this-is-a-custom-url/this-is-a-custom-urlExpected behavior
The URL alias should regenerate it's path directly when the
generatedstatus changes.