Use homepage as basename for browser router
Change-Id: I8eafcdd25224437c1110bb0583b412d60e21d292
This commit is contained in:
parent
29041ab473
commit
7bae0ba80a
@ -2,7 +2,7 @@
|
||||
"name": "ara-web",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"homepage": "./",
|
||||
"homepage": "http://localhost:3000/",
|
||||
"dependencies": {
|
||||
"@patternfly/patternfly-next": "1.0.105",
|
||||
"axios": "^0.18.0",
|
||||
|
@ -21,7 +21,7 @@ class App extends Component {
|
||||
if (isLoading) return null;
|
||||
return (
|
||||
<Provider store={store}>
|
||||
<BrowserRouter>
|
||||
<BrowserRouter basename={process.env.PUBLIC_URL}>
|
||||
<Switch>
|
||||
<Redirect from="/" exact to="/playbooks" />
|
||||
<Route
|
||||
|
Loading…
x
Reference in New Issue
Block a user