diff --git a/app/controllers/front_controller.rb b/app/controllers/front_controller.rb index 3648f6a47..686c504ec 100644 --- a/app/controllers/front_controller.rb +++ b/app/controllers/front_controller.rb @@ -3,7 +3,7 @@ class FrontController < ApplicationController layout false def show_breadcrumb - @ancestors = Page.find(params[:page_id]).ancestors_and_self + @ancestors = Page.find(params[:id]).ancestors_and_self @ancestors.delete_at(0) end diff --git a/lib/parsers/parser_common.rb b/lib/parsers/parser_common.rb index b1b323323..d25912009 100644 --- a/lib/parsers/parser_common.rb +++ b/lib/parsers/parser_common.rb @@ -147,7 +147,7 @@ module ParserCommon # breadcrumb def parse_breadcrumbs_edit(body = nil, page = nil, edit=nil) body.css('breadcrumb').each do |breadcrumb| - ancestors = Page.find(page.id).ancestors_and_self.map{|m|m.title} rescue nil + ancestors = Page.find(page.id).ancestors_and_self rescue nil ancestors.delete_at(0) res = '' @@ -156,7 +156,7 @@ module ParserCommon res << "