dxa-web-application-java icon indicating copy to clipboard operation
dxa-web-application-java copied to clipboard

Page returns a 404 if it is nested under a structure group with (brackets) in the directory name

Open kunalshetye opened this issue 9 years ago • 3 comments

Hi,

If I have a StructureGroup that has parenthesis in the directory name, then all the published pages nested inside it return 404 Page Not Found.

Example url to replicate this issue: /level(0-1)/level2/page.html

kunalshetye avatar Oct 13 '16 09:10 kunalshetye

Can you provide some more details, like how is the path stored in the broker database for the page and what does the web server access log report?

bkoopman avatar Oct 13 '16 10:10 bkoopman

I found a possibly related issue. The navigation.json does not seem to handle parenthesis very well. The URL of the structure groups shows the parenthesis correctly, on pages the parenthesis are encoded as %28 and %29.

{
    Id: "tcm:63-10716-4",
    Title: "About us",
    Url: "/about-(us)",
    Type: "StructureGroup",
    Items: [ {
        Id: "tcm:63-9538-64",
        Title: "Example",
        Url: "/about-%28us%29/index",
        Type: "Page",
        Items: [],
        PublishedDate: "2016-10-21T17:10:14.000+0000",
        Visible: false
    },
    {
        Id: "tcm:63-10717-4",
        Title: "More about us",
        Url: "/about-(us)/more",
        Type: "StructureGroup",
        Items: [ ],
        Visible: false
    },   

jhorsman avatar Oct 26 '16 11:10 jhorsman

TSI-2084 (internal issue ID for tracking purposes)

rpannekoek avatar Oct 26 '16 12:10 rpannekoek