Redirect emails list to new email for new users
[MAILPOET-2383]
This commit is contained in:
committed by
Jack Kitterhing
parent
e9f77bc237
commit
2abfae5eab
@@ -104,7 +104,7 @@ const App = () => (
|
|||||||
<HashRouter>
|
<HashRouter>
|
||||||
<Notices />
|
<Notices />
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route exact path="/" render={() => <Redirect to="/standard" />} />
|
<Route exact path="/" render={() => <Redirect to={window.mailpoet_newsletters_count === 0 ? '/new' : '/standard'} />} />
|
||||||
{routes.map((route) => (
|
{routes.map((route) => (
|
||||||
<Route
|
<Route
|
||||||
key={route.path}
|
key={route.path}
|
||||||
|
Reference in New Issue
Block a user