Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7166

Page gets 404 when the beginning of the requested path matches handle prefix in site definition

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.12, 5.6.7, 5.7.1, 6.0
    • 5.5.6, 5.6.3
    • None
    • None
    • Current online demo env
    • Kromeriz 153, Kromeriz 154, Kromeriz 155
    • 5

    Description

      When a site is defined, it defines a handle prefix in mappings. If this handle prefix is similar to the beginning of the path of the page that it is being requested, then this first part of the path is removed and the page cannot be found and cannot be rendered, getting an error 404.

      How to reproduce it in demo website:

      If you create a page under travel demo website with a name that begins with travel, the page editor won't be able to edit it and if you try to render it you will get 404.

      Steps to reproduce:

      1. Create a page under /travel named travel0
      2. try to edit it -> 404
      3. try to render it directly: http://domain/magnoliaAuthor/travel/travel0 -> 404

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                jsimak Jaroslav Simak
                ebguilbert Edwin Guilbert
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD