Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Lee Yu <hleeyu@gmail.com>2018-11-01 17:43:43 +0300
committerHeinrich Lee Yu <hleeyu@gmail.com>2018-11-13 10:27:42 +0300
commit91d88d10c7a5608309e83969723409d95d1a34b5 (patch)
treebcce2be8a87a75d9fe56c5e82299c3d688b05e68 /app/helpers/search_helper.rb
parentf2371988bf173db78b6d31f66d8449941db42dd5 (diff)
Clean up page_filter_path
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r--app/helpers/search_helper.rb10
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)