Make React routes relative

This commit is contained in:
Kyle McCormick
2020-04-04 20:48:18 -04:00
parent 0b00fa21a2
commit abc29bbcee
2 changed files with 4 additions and 4 deletions

View File

@@ -73,7 +73,7 @@
"universal-cookie": "4.0.3"
},
"devDependencies": {
"@edx/frontend-build": "2.0.6",
"@edx/frontend-build": "kdmccormick/frontend-build#kdmccormick/devstack",
"codecov": "3.6.5",
"enzyme": "3.10.0",
"enzyme-adapter-react-16": "1.15.2",

View File

@@ -31,10 +31,10 @@ subscribe(APP_READY, () => {
ReactDOM.render(
<AppProvider store={configureStore()}>
<Switch>
<Route path="/coaching_consent" component={CoachingConsent} />
<Route path="coaching_consent" component={CoachingConsent} />
<HeaderFooterLayout>
<Route exact path="/" component={AccountSettingsPage} />
<Route path="/notfound" component={NotFoundPage} />
<Route exact path="" component={AccountSettingsPage} />
<Route path="notfound" component={NotFoundPage} />
<Route path="*" component={NotFoundPage} />
</HeaderFooterLayout>
</Switch>