Skip to content
Snippets Groups Projects
Commit eccaa099 authored by Rubén Dávila's avatar Rubén Dávila
Browse files

Make cookie suffix more simpler.

parent 0f79620c
No related branches found
No related tags found
1 merge request!2537Save list sort in a cookie
Pipeline #
Loading
@@ -409,8 +409,8 @@ class ApplicationController < ActionController::Base
Loading
@@ -409,8 +409,8 @@ class ApplicationController < ActionController::Base
private private
   
def set_default_sort def set_default_sort
controller_name = params[:controller].sub(/Controller\Z/, '').underscore # Use the controller name so we have a distinct cookie for Issues, MRs and Dashboard
cookie_suffix = "_sort_#{controller_name}" cookie_suffix = "_sort_#{params[:controller].underscore}"
   
key = "#{(@project || @group || current_user).cookie_key}#{cookie_suffix}" key = "#{(@project || @group || current_user).cookie_key}#{cookie_suffix}"
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment