#request_uri is deprecated.
This commit is contained in:
parent
43d87ecf98
commit
2e632f1596
|
@ -24,7 +24,7 @@ module ApplicationHelper
|
||||||
# Remove the locale but keep all the other params
|
# Remove the locale but keep all the other params
|
||||||
def get_go_back
|
def get_go_back
|
||||||
begin
|
begin
|
||||||
if request.request_uri.include?('locale=')
|
if request.url.include?('locale=')
|
||||||
session[:last_page]
|
session[:last_page]
|
||||||
else
|
else
|
||||||
target = request.referer.split('?')
|
target = request.referer.split('?')
|
||||||
|
|
Loading…
Reference in New Issue