From e0f63eebdc9ae73c23a1026566c176b9df3e29d6 Mon Sep 17 00:00:00 2001 From: kidhab <32387157+kidhab@users.noreply.github.com> Date: Wed, 29 Mar 2023 16:00:18 +0200 Subject: [PATCH] Open external websites in new browser window (#981) Usually the Foodcoop's website and the help pages are external resources. If they load in the same window one could forget to logout from the Foodsoft. --- app/views/layouts/application.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 7781096d..c1b1cf00 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -13,9 +13,9 @@ %li= link_to t('.reference_calculator'), home_reference_calculator_path %li= link_to t('.logout'), logout_path %li{class: ('disabled' if FoodsoftConfig[:homepage].blank?)} - = link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage] + = link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage], target: '_blank' - if FoodsoftConfig[:help_url] - %li= link_to t('.help'), FoodsoftConfig[:help_url] + %li= link_to t('.help'), FoodsoftConfig[:help_url], target: '_blank' %li= link_to t('.feedback.title'), new_feedback_path, title: t('.feedback.desc') .clearfix