From 1e23ce1062ecea376c98b389ec6d60bd42a64440 Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Wed, 10 Jan 2024 05:29:50 -0800 Subject: [PATCH] fix: react-router basepath was not set, breaking this MFE on tutor instances (#784) --- src/index.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.jsx b/src/index.jsx index 7ef042750..3488cca8c 100755 --- a/src/index.jsx +++ b/src/index.jsx @@ -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 = () => { )} , ), + { + basename: getPath(getConfig().PUBLIC_PATH), + }, ); return (