Commit 0e992f32 authored by's avatar
Browse files

preserve u on redirects to login

parent da032e5e
......@@ -58,7 +58,7 @@ class ApplicationController < ActionController::Base
if !current_user
page = request.env['PATH_INFO']
if page != '/'
redirect_to "/login?p=#{page}"
redirect_to("/login?p=#{page}" + if params[:u] then "&u=#{params[:u]}" else "" end)
redirect_to "/login"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment