Skip to content

Commit

Permalink
[#981] recognize_page_path was not working when relative_url_root was…
Browse files Browse the repository at this point in the history
… set
  • Loading branch information
bryanlarsen committed May 15, 2012
1 parent c21d191 commit 5c1595a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/lib/hobo/helper.rb
Expand Up @@ -128,7 +128,7 @@ def base_url_for(object, subsite, action)

def recognize_page_path
if params[:page_path]
Rails.application.routes.recognize_path(params[:page_path])
Rails.application.routes.recognize_path(params[:page_path].gsub(/^#{Rails.configuration.action_controller.relative_url_root}/,''))
else
params
end
Expand Down

0 comments on commit 5c1595a

Please sign in to comment.