From e8d1820551d0705ed3c74ca32a5878086c48869d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 19 Jan 2018 13:15:52 +0100 Subject: [PATCH] Fix provider urls --- app/views/hooks/login/_providers.html.erb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/views/hooks/login/_providers.html.erb b/app/views/hooks/login/_providers.html.erb index f5d7394676..167a97c5ea 100644 --- a/app/views/hooks/login/_providers.html.erb +++ b/app/views/hooks/login/_providers.html.erb @@ -33,15 +33,13 @@ See doc/COPYRIGHT.rdoc for more details. <% OpenProject::Plugins::AuthPlugin.providers.each do |pro| %> <% - opts = { - :controller => '/auth', - :action => pro[:name] - } + opts = {} + if params['back_url'] opts[:origin] = params['back_url'] end %> - + <% if pro[:icon] %> <%= content_for :header_tags do %>