Master branch not working with tutor
FatemeKhodayari opened this issue · 1 comments
FatemeKhodayari commented
Hi. I'm running openedx palm 3 with tutor. When switching the discussions MFE to the master branch, after launch, I get this page:
The said line is const { params: { page } } = useRouteMatch(`${Routes.COMMENTS.PAGE}?`);
. So I assume that the useRouteMatch
function is returning null. Can you please help me with this?
This issue was first posted in the forum.
xitij2000 commented
I've investigated this and it's happening because frontend-platform sets the basename for the browser history to the PUBLIC_PATH which is set to the application name in tutor.
What this means it that the discussions MFE is trying to match paths starting with /discussions/...
whereas frontend platform has already stripped those out.