Merge pull request #739 from sgmap/fix_brand_link

[Fix #738] TPS link on header should navigate on same UI
This commit is contained in:
Mathieu Magnin 2017-09-19 18:11:46 +02:00 committed by GitHub
commit 0355906c71
2 changed files with 6 additions and 1 deletions

View file

@ -2,6 +2,10 @@ class RootController < ApplicationController
layout 'new_application'
def index
if params[:new_ui] && gestionnaire_signed_in? # TODO delete new_ui when old UI is no longer used
return redirect_to procedures_path
end
if administrateur_signed_in?
return redirect_to admin_procedures_path

View file

@ -2,7 +2,8 @@
.header-inner-content
.flex.align-center
= link_to root_path, class: "header-logo" do
-# TODO delete new_ui when old UI is no longer used
= link_to root_path(new_ui: 1), class: "header-logo" do
%img{ src: image_url("header/logo-tps.svg") }
- if gestionnaire_signed_in?