Skip to content

Commit

Permalink
Revert "1800 eliminate redirect"
Browse files Browse the repository at this point in the history
  • Loading branch information
goldibex authored Oct 9, 2017
1 parent 2fe5063 commit 9d289e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ app.use(function* (next) {
this.body = {status: 'ok'};
return;
}


// redirect to home page/feed if known account
if (this.method === 'GET' && this.url === '/' && this.session.a) {
this.status = 302;
this.redirect(`/@${this.session.a}/feed`);
return;
}
// normalize user name url from cased params
if (
this.method === 'GET' &&
Expand Down

0 comments on commit 9d289e8

Please sign in to comment.