Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-131941

Add a friendly URL mapper for question URLs

    Details

      Description

      Currently Liferay.dev requires this URL rewrite configuration for Questions: https://github.com/liferay/liferay-community-site/blob/3a64b5bc9fb2369d4a3f6013f349e1294af1781b/liferay/configs/common/tomcat/webapps/ROOT/WEB-INF/urlrewrite.xml#L26

      The goal of this story is to introduce a friendly URL mapper in Questions that makes that configuration unnecessary. 

      If this didn't work, as Plan B we could apply Liferay.dev's configuration to master (see https://github.com/liferay/liferay-portal/blob/master/portal-web/docroot/WEB-INF/urlrewrite.xml)

      How to test it

      • Change to history router in MBMessage configuration in System Settings. Add a path like '/ask'
      • Add Questions Widget to a page. Rename the page friendly URL to the same as the history router: '/ask'
      • Check the paths the widget generates and how the history router works without modifying the url-rewrite.xml

      Test Scenarios

      TC ID Test Scenarios Test Strategy Kind of test Is it covered by FrontEnd? (JS-Unit) Is it covered by BackEnd? (unit, integration, or REST) Test to add
      2.12 There is no '#' character in URL when using history router High Poshi No No QuestionsWidgetActions#DetailsCanbeViewedWithHistoryRouter
      2.13 A user can access questions when using history router High Poshi No No QuestionsWidgetActions#DetailsCanbeViewedWithHistoryRouter
      2.14 The URL can be changed to the original once history router is not used Medium Poshi No No QuestionsWidgetActions#CanRestoreHistoryRouterToDefaultSettings
      2.15 A user can still access questions once history router is not used Medium Poshi No No QuestionsWidgetActions#CanRestoreHistoryRouterToDefaultSettings
      2.16 A user can use history router when enabling MB Moderation Medium Poshi No No QuestionsWithWorkflow#CanSetHistoryRouterWithWorkflow

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              austin.chiang Austin Chiang
              Reporter:
              eduardo.garcia Eduardo García (Inactive)
              Engineering Assignee:
              Javier Gamarra (Inactive)
              Recent user:
              Sophia Zhang
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.4.1 CE GA2 DXP 7,4
                  7.4.13 DXP GA1
                  Master