Skip to content

Commit

Permalink
Merge pull request #213 from heritagemap/feature/202_redirects
Browse files Browse the repository at this point in the history
Короткие ссылки на значимые локации или населённые пункты #202
  • Loading branch information
Julia-Lavrova authored Jan 27, 2021
2 parents 9d68c74 + 9730457 commit 7be192b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
BrowserRouter as Router,
Switch,
Route,
Redirect,
} from 'react-router-dom';

import Map from 'components/Map';
Expand All @@ -16,6 +17,14 @@ const App = () => (
<Router>
<main>
<Switch>
<Route path="/moscow">
<Redirect to="/lat/55.744654/lon/37.624991" />
</Route>

<Route path="/nizhny-novgorod">
<Redirect to="/lat/56.301011/lon/43.995229" />
</Route>

<Route path="/lat/:lat/lon/:lon/:id?">
<Map />
<Sidebar />
Expand Down

0 comments on commit 7be192b

Please sign in to comment.