diff options
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r-- | app/helpers/search_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 70c02107b34..c46516e463b 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -173,6 +173,16 @@ module SearchHelper opts end + def search_history_storage_prefix + if @project.present? + @project.full_path + elsif @group.present? + @group.full_path + else + root_dashboard_path + end + end + # Sanitize a HTML field for search display. Most tags are stripped out and the # maximum length is set to 200 characters. def search_md_sanitize(object, field) |