Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit bcc21002f0a964e5de33a49ec67af5eb726e7c33 1 parent dcace7c
@rweng rweng authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  pages/lib/refinery/pages/instance_methods.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.