fix page paths of summary pages
authorelijah <elijah@riseup.net>
Wed, 8 May 2013 05:51:06 +0000 (22:51 -0700)
committerelijah <elijah@riseup.net>
Wed, 8 May 2013 05:51:06 +0000 (22:51 -0700)
app/helpers/navigation_helper.rb

index 30faa78..48b57e4 100644 (file)
@@ -50,7 +50,7 @@ module NavigationHelper
       menu.children.each do |submenu|
         child_page = page.child(submenu.name)
         haml :h3 do
-          haml :a, child_page.nav_title, :href => child_page.path.join('/')
+          haml :a, child_page.nav_title, :href => page_path(child_page)
         end
         haml :p, child_page.props.summary
       end