Details
-
Bug
-
Resolution: Fixed
-
High
-
5.4.9, 5.4.10
-
None
-
None
Description
After deleting a content object from the eZ Website Toolbar, it redirects to parent content object.
If content.tree_root.location_id is the default (2) it works as expected, which means redirecting to URL alias (which looks like this: http://your-site.local/This-is-root/Do-it).
If content.tree_root.location_id is not the default, it redirects to content/view (system) URL (which look like this: http://your-site.local/content/view/full/123).
Steps to reproduce:
- Create a new This is root folder (I'll assume its node_id is 123)
- Edit the config file vi ezpublish/config/ezpublish.yml and change the eng siteaccess:
Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
ezpublish: eng: session: name: eZSESSID + content: + tree_root: + location_id: 123
- Create the Do it article under the folder you created.
- Open http://your-site.local/site/This-is-root/Do-it to see the same article without the location_id setting
- Open http://your-site.local and log into the frontend with the admin user
- Navigate to http://your-site.local/Do-it to see the article you just created
- Click on the trash icon on eZ Website Toolbar and delete the Do it article
- Confirm you will be redirected to http://your-site.local/content/view/full/123 instead http://your-site.local/