mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 10:46:30 -05:00
fix routing of "/"
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
d03e000bd1
commit
c024a2a9d6
1 changed files with 4 additions and 1 deletions
|
@ -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>)
|
||||
|
|
Loading…
Reference in a new issue