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

Redirect based on router, not url alias

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • None
    • None

    Description

       

      Redirect based on router, not url alias - which may lead to wrong redirection when using multisite domain configuration.

       

      This ticket follow the same type of issue fixed in

      https://jira.ez.no/browse/EZEE-2902

       
      Steps to reproduce:

      case A.1:
         default siteaccess matcher (URIElement: 1) - admin ui redirect

      1. goto admin ui
      2. create new content
      3. publish new content
      4. you should be redirected to system url /admin/content/location/{location_id}


       
      case A.2:
      default siteaccess matcher (URIElement: 1) - redirect for  user generated content

      1. goto admin ui (demo.local/admin)
      2. create new content and publish it
      3. edit this content
      4. copy the url - it should looks like this: /admin/content/edit/draft/{int}/{int}/{lang}/{int}
      5. remove admin prefix, open the page - you should see UGC form
      6. fill required fields, publish it
      7. you should be redirected to the content with proper url based on location name and content name (not system url)

       


       
      case B.1:
         matcher: Map\Host:

      example config:

      match:
          Map\Host:
              eng.demo.local: site
              fr.demo.local: fr
              admin.demo.local: admin
      

      1. goto admin ui (admin.demo.local)
      2. prepare new root location for `fr` siteaccess
          2.1 create new folder (name: fr_root), get locationId
          2.2 configure fr siteaccess to use this new folder as root location:

      fr:
          languages: [fre-FR, eng-GB]
          content:
              tree_root:
                  location_id: __location_id_from_2.1_step_
                  excluded_uri_prefixes: [ /media, /images ]
      

      3. create new content in `fr_root`
      4. publish new content
      5. you should be redirected to system url admin.demo.local/content/location/{location_id}
       


       
      case B.2:
          same config as in B.1

      1. goto admin ui (admin.demo.local)
      2. go to step 3
      3. edit content created in B.1 - 4
      4. copy the url - it should looks like this: admin.demo.local/content/edit/draft/{int}/{int}/{lang}/{int}
      5. replace the `admin` prefix with `fr`, open the page - you should see UGC form
      6. fill required fields, publish it
      7. you should be redirected to the content with proper url based on siteaccess config, location name and content name (not system url) - the url should not looks like this: fr.demo.local/fr/*

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            damian.zabawa-obsolete@ibexa.co Damian Zabawa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: