Uploaded image for project: 'URL Translation'
  1. URL Translation
  2. MURLTRANS-39

URLTrans filter should return 404 if lang code does not correspond with URI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • 6.2.5
    • 6.2.4
    • None

    Description

      The problem seems to be limited to the default language but it's possible to make requests to the system where the requested URI does match the requested language.

      Consider a site with two languages, english and german. For example there is a hierarchy that looks like this:

      • home (heim)
        • section (sektion)
          • content (inhalt)

      A proper request for the german content would be:
      http://localhost:8080/dx-core-webapp/de/sektion/inhalt

      However, I am also able to access the german content with the default URL:
      http://localhost:8080/dx-core-webapp/de/section/content

      While both URLs technically make sense it's bad for SEO. The URLTransFilter needs to block the default URL and return a 404. Or at least have a toggle to block the default access.

      Notes
      It makes sense that the system would respond correctly to a URL with an explicit lang code and a default URI. For example:

      The point is with URL translation we are overriding the page nodes names with translations which should be unique.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              rgange Richard Gange
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Work Started:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 0.75d
                    0.75d