Affects Version/s: None
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)
- 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
|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|