diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-17 01:57:44 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-17 01:57:44 +0200 |
| commit | 7ef59901e08b6610f134c696876695cf52061f48 (patch) | |
| tree | edde6f9ca29ec2f804c3300402011536f8156f1e /app/client/auth/signup.component.js | |
| parent | d2b4aaf625f10c659614d7326d8dc3e2e31ae0f3 (diff) | |
redirection
Diffstat (limited to 'app/client/auth/signup.component.js')
| -rw-r--r-- | app/client/auth/signup.component.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/client/auth/signup.component.js b/app/client/auth/signup.component.js index 6f9cdaf..87e6ac6 100644 --- a/app/client/auth/signup.component.js +++ b/app/client/auth/signup.component.js @@ -39,7 +39,7 @@ class Signup extends Component { } render(){ if (this.props.auth.isAuthenticated) { - return <Redirect to="/" /> + return <Redirect to={this.props.auth.returnTo || '/'} /> } return ( <form onSubmit={this.handleSubmit}> |
