diff options
author | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-11-01 17:43:43 +0300 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-11-13 10:27:42 +0300 |
commit | 91d88d10c7a5608309e83969723409d95d1a34b5 (patch) | |
tree | bcce2be8a87a75d9fe56c5e82299c3d688b05e68 /app/helpers/search_helper.rb | |
parent | f2371988bf173db78b6d31f66d8449941db42dd5 (diff) |
Clean up page_filter_path
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) |