diff --git a/app/helpers/surveys_helper.rb b/app/helpers/surveys_helper.rb index f2d4c762e4..62160dbb87 100644 --- a/app/helpers/surveys_helper.rb +++ b/app/helpers/surveys_helper.rb @@ -162,7 +162,7 @@ def survey_notification_id(notification) def survey_class_for_path(req, path) current_path_segments = req.path.split('/').reject(&:blank?) active_path = path.split('/').reject(&:blank?).last - current_path_segments.last == active_path ? 'active' : nil + current_path_segments.include?(active_path) ? 'active' : nil end ######################