mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 09:45:37 -04: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 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 {History} from "../pages/history/history";
|
||||||
import {Intro} from "../pages/intro/intro";
|
import {Intro} from "../pages/intro/intro";
|
||||||
import {Container} from "react-bootstrap";
|
import {Container} from "react-bootstrap";
|
||||||
|
@ -21,6 +21,9 @@ export const Landing: React.FC = () => {
|
||||||
<Route path="/login">
|
<Route path="/login">
|
||||||
<Login/>
|
<Login/>
|
||||||
</Route>
|
</Route>
|
||||||
|
<Route path="/">
|
||||||
|
<Redirect to="/intro"/>
|
||||||
|
</Route>
|
||||||
</Switch>
|
</Switch>
|
||||||
<Footer/>
|
<Footer/>
|
||||||
</Container>)
|
</Container>)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue