diff options
Diffstat (limited to 'app/helpers/application_helper.rb')
| -rw-r--r-- | app/helpers/application_helper.rb | 10 | 
1 files changed, 9 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 38b5fc4a011..3f3509bb18a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -275,7 +275,9 @@ module ApplicationHelper      'https://' + promo_host    end -  def page_filter_path(options={}) +  def page_filter_path(options = {}) +    without = options.delete(:without) +      exist_opts = {        state: params[:state],        scope: params[:scope], @@ -288,6 +290,12 @@ module ApplicationHelper      options = exist_opts.merge(options) +    if without.present? +      without.each do |key| +        options.delete(key) +      end +    end +      path = request.path      path << "?#{options.to_param}"      path  | 
