Skip to content

Commit

Permalink
[#981] potential fix to one of many problems with Hobo running in
Browse files Browse the repository at this point in the history
non-root deployments.
  • Loading branch information
bryanlarsen committed May 15, 2012
1 parent 80ba0d6 commit 54e6099
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hobo/lib/hobo/helper.rb
Expand Up @@ -127,7 +127,11 @@ def base_url_for(object, subsite, action)


def recognize_page_path
Rails.application.routes.recognize_path(params[:page_path]||request.fullpath)
if params[:page_path]
Rails.application.routes.recognize_path(params[:page_path])
else
params
end
end

def url_for_page_path(options={})
Expand Down

0 comments on commit 54e6099

Please sign in to comment.