From 2097f5330c7c9c364dbfe107d98461375a7ba740 Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Wed, 7 Mar 2018 14:43:54 -0300 Subject: [PATCH] FIX: Login redirect path was broken in subfolder installs --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8a64fb843a4..e02d7343368 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -644,7 +644,7 @@ class ApplicationController < ActionController::Base else # save original URL in a cookie (javascript redirects after login in this case) cookies[:destination_url] = destination_url - redirect_to "/login" + redirect_to path("/login") end end end