summaryrefslogtreecommitdiffstats
path: root/webapp/routes/route_team.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/routes/route_team.jsx')
-rw-r--r--webapp/routes/route_team.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/routes/route_team.jsx b/webapp/routes/route_team.jsx
index 45494dca5..fe2b0050c 100644
--- a/webapp/routes/route_team.jsx
+++ b/webapp/routes/route_team.jsx
@@ -94,7 +94,7 @@ function preNeedsTeam(nextState, replace, callback) {
const team = TeamStore.getByName(teamName);
if (!team) {
- browserHistory.push('/');
+ browserHistory.push('/?redirect_to=' + encodeURIComponent(nextState.location.pathname));
return;
}