From 2b50a0bf7921ed1110d154535d78032dcdc4cedf Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Tue, 3 Sep 2024 11:02:53 +0100 Subject: [PATCH] Notification path regex should work on review apps --- app/helpers/application_helper.rb | 2 +- app/helpers/navigation_items_helper.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4737f26c1..bb119b29e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -28,7 +28,7 @@ module ApplicationHelper end def notifications_to_display? - !request.path.match?(/^\/notifications\/\d+$/) && (authenticated_user_has_notifications? || unauthenticated_user_has_notifications?) + !request.path.match?(/\/notifications\/\d+$/) && (authenticated_user_has_notifications? || unauthenticated_user_has_notifications?) end private diff --git a/app/helpers/navigation_items_helper.rb b/app/helpers/navigation_items_helper.rb index 6a5bece9e..b1a0c6a4c 100644 --- a/app/helpers/navigation_items_helper.rb +++ b/app/helpers/navigation_items_helper.rb @@ -47,7 +47,7 @@ module NavigationItemsHelper private def home_current?(path) - path == root_path || path.match?(/^\/notifications\/\d+$/) + path == root_path || path.match?(/\/notifications\/\d+$/) end def lettings_logs_current?(path)