Skip to content

Commit

Permalink
Don't set user_return_to in LocaleController
Browse files Browse the repository at this point in the history
This no longer has any effect (we now use spree_user_return_to) and we
should not be using it.
  • Loading branch information
jhawthorn committed Mar 29, 2018
1 parent a779d17 commit cec9040
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frontend/app/controllers/spree/locale_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
module Spree
class LocaleController < Spree::StoreController
def set
if request.referer && request.referer.starts_with?('http:https://' + request.host)
session['user_return_to'] = request.referer
end
if params[:locale] && I18n.available_locales.map(&:to_s).include?(params[:locale])
session[:locale] = I18n.locale = params[:locale]
flash.notice = t('spree.locale_changed')
Expand Down

0 comments on commit cec9040

Please sign in to comment.