Skip to content

Commit

Permalink
Attempt to fix #1035
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime authored and ugisozols committed Nov 26, 2011
1 parent e317e89 commit fbddc1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/app/models/refinery/page.rb
Expand Up @@ -233,8 +233,8 @@ def link_url_localised?
end

def url_marketable
# except(:id) is important to prevent any other params[:id] from interfering with this route.
url_normal.merge(:path => nested_url).except(:id)
# :id => nil is important to prevent any other params[:id] from interfering with this route.
url_normal.merge(:path => nested_url, :id => nil)
end

def url_normal
Expand Down

0 comments on commit fbddc1a

Please sign in to comment.