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:
commit
0355906c71
2 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,10 @@ class RootController < ApplicationController
|
||||||
layout 'new_application'
|
layout 'new_application'
|
||||||
|
|
||||||
def index
|
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?
|
if administrateur_signed_in?
|
||||||
return redirect_to admin_procedures_path
|
return redirect_to admin_procedures_path
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
.header-inner-content
|
.header-inner-content
|
||||||
|
|
||||||
.flex.align-center
|
.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") }
|
%img{ src: image_url("header/logo-tps.svg") }
|
||||||
|
|
||||||
- if gestionnaire_signed_in?
|
- if gestionnaire_signed_in?
|
||||||
|
|
Loading…
Add table
Reference in a new issue