diff --git a/lib/authenticated_system.rb b/lib/authenticated_system.rb index ef90381..0b48db1 100644 --- a/lib/authenticated_system.rb +++ b/lib/authenticated_system.rb @@ -93,7 +93,7 @@ module AuthenticatedSystem # Store the URI of the current request in the session. # # We can return to this location by calling #redirect_back_or_default. - def store_location(location = request.request_uri) + def store_location(location = request.url) session[:return_to] = location end -- libgit2 0.21.2