From 2e632f159625e18b4511a3437972dd67a2650045 Mon Sep 17 00:00:00 2001 From: chris2tof Date: Mon, 2 May 2011 13:28:38 +0800 Subject: [PATCH] #request_uri is deprecated. --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6b10d942..49d10822 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -24,7 +24,7 @@ module ApplicationHelper # Remove the locale but keep all the other params def get_go_back begin - if request.request_uri.include?('locale=') + if request.url.include?('locale=') session[:last_page] else target = request.referer.split('?')