fix routing of "/"

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2020-05-23 13:41:13 +02:00 committed by Philip Molares
parent d03e000bd1
commit c024a2a9d6

View file

@ -1,5 +1,5 @@
import React from "react";
import {Route, Switch} from "react-router-dom";
import {Redirect, Route, Switch} from "react-router-dom";
import {History} from "../pages/history/history";
import {Intro} from "../pages/intro/intro";
import {Container} from "react-bootstrap";
@ -21,6 +21,9 @@ export const Landing: React.FC = () => {
<Route path="/login">
<Login/>
</Route>
<Route path="/">
<Redirect to="/intro"/>
</Route>
</Switch>
<Footer/>
</Container>)