Skip to content

Commit

Permalink
try to go back to where you came from on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Visnu Pitiyanuvath committed Aug 23, 2010
1 parent dc5a59f commit cabd379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeko.coffee
Expand Up @@ -304,7 +304,7 @@ post '/login', ->
@render 'login.html.haml'

get '/logout', ->
@logout => @redirect(@req.param('return_to') || '/')
@logout => @redirect(@req.param('return_to') || @req.headers.referer || '/')

# reset password
post '/reset_password', ->
Expand Down

0 comments on commit cabd379

Please sign in to comment.