Permalink
Browse files

fix for https://github.com/resolve/refinerycms-blog/issues/#issue/58

…and others who use nested scopes in routes.rb
  • Loading branch information...
rweng committed Apr 7, 2011
1 parent dcace7c commit bcc21002f0a964e5de33a49ec67af5eb726e7c33
Showing with 1 addition and 1 deletion.
  1. +1 −1 pages/lib/refinery/pages/instance_methods.rb
@@ -26,7 +26,7 @@ def render(*args)
private
def store_current_location!
unless admin?
- session[:website_return_to] = @page.url if @page.try(:present?)
+ session[:website_return_to] = url_for(@page.url) if @page.try(:present?)
else
super
end

0 comments on commit bcc2100

Please sign in to comment.