Fix path error in parser for breadcrumb
This commit is contained in:
parent
c7cf587581
commit
0cacfb7c05
|
@ -98,7 +98,7 @@ module ParserFrontEnd
|
||||||
page_breadcrumb = body.css('.page_breadcrumb').first
|
page_breadcrumb = body.css('.page_breadcrumb').first
|
||||||
if page_breadcrumb
|
if page_breadcrumb
|
||||||
res = "<div id='#{page_breadcrumb['id']}', class='#{page_breadcrumb['class']}'>"
|
res = "<div id='#{page_breadcrumb['id']}', class='#{page_breadcrumb['class']}'>"
|
||||||
res << "<div class='dymanic_load' path='#{front_show_site_breadcrumb_path}'></div>"
|
res << "<div class='dymanic_load' path='#{front_show_breadcrumb_path}'></div>"
|
||||||
res << "</div>"
|
res << "</div>"
|
||||||
fragment = Nokogiri::HTML::DocumentFragment.new(body, res)
|
fragment = Nokogiri::HTML::DocumentFragment.new(body, res)
|
||||||
page_breadcrumb.swap(fragment)
|
page_breadcrumb.swap(fragment)
|
||||||
|
|
Loading…
Reference in New Issue