Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27313

Deleting content redirects to system url instead of alias with a custom content.tree_root.location_id

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • Customer request, 5.4.11
    • 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:

      1. Create a new This is root folder (I'll assume its node_id is 123)
      2. 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
        
      3. Create the Do it article under the folder you created.
      4. Open http://your-site.local/site/This-is-root/Do-it to see the same article without the location_id setting
      5. Open http://your-site.local and log into the frontend with the admin user
      6. Navigate to http://your-site.local/Do-it to see the article you just created
      7. Click on the trash icon on eZ Website Toolbar and delete the Do it article
      8. Confirm you will be redirected to http://your-site.local/content/view/full/123 instead http://your-site.local/

      Attachments

        Activity

          People

            Unassigned Unassigned
            jacek.foremski-obsolete@ez.no Jacek Foremski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 3 hours
                2d 3h