fix: react-router basepath was not set, breaking this MFE on tutor instances (#784)

This commit is contained in:
Braden MacDonald
2024-01-10 05:29:50 -08:00
committed by GitHub
parent 9ad192054b
commit 1e23ce1062

View File

@@ -2,7 +2,7 @@ import 'core-js/stable';
import 'regenerator-runtime/runtime';
import {
APP_INIT_ERROR, APP_READY, subscribe, initialize, mergeConfig,
APP_INIT_ERROR, APP_READY, subscribe, initialize, mergeConfig, getConfig, getPath,
} from '@edx/frontend-platform';
import { AppProvider, ErrorPage } from '@edx/frontend-platform/react';
import React, { useEffect } from 'react';
@@ -71,6 +71,9 @@ const App = () => {
)}
</Route>,
),
{
basename: getPath(getConfig().PUBLIC_PATH),
},
);
return (