Skip to content
Snippets Groups Projects
Commit c6e3a912 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

feat(routing): redirect / to /dashboard

parent d77176bc
No related branches found
No related tags found
1 merge request!43Sprint #19
import React from 'react'
import { Route, Switch } from 'react-router-dom'
import { Route, Switch, Redirect } from 'react-router-dom'
import { AuthenticatedComponent } from 'pubsweet-client'
import {
......@@ -91,7 +91,8 @@ const Routes = () => (
/>
<Route component={ConfirmAccount} exact path="/confirm-signup" />
<Route component={Unsubscribe} exact path="/unsubscribe" />
<PrivateRoute component={DashboardPage} exact path="/" />
<Redirect exact from="/" to="/dashboard" />
<PrivateRoute component={DashboardPage} exact path="/dashboard" />
<PrivateRoute component={UserProfilePage} exact path="/profile" />
<PrivateRoute
component={ChangePasswordPage}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment