diff --git a/app/controllers/breadcrumb_widgets_controller.rb b/app/controllers/breadcrumb_widgets_controller.rb
index 1c8f11e..b8ba12b 100644
--- a/app/controllers/breadcrumb_widgets_controller.rb
+++ b/app/controllers/breadcrumb_widgets_controller.rb
@@ -7,10 +7,10 @@ class BreadcrumbWidgetsController < ApplicationController
crumbs.each do |crumb|
if crumb == ""
p = Page.root
- data << {"page_name" => p.name, "url" => "/#{locale.to_s}" + p.url}
+ data << {"page_name" => p.name.gsub('
',''), "url" => "/#{locale.to_s}" + p.url}
else
p = Page.where(:page_id => crumb).first
- data << {"page_name" => p.name, "url" => "/#{locale.to_s}" + p.url}
+ data << {"page_name" => p.name.gsub('
',''), "url" => "/#{locale.to_s}" + p.url}
end
end
{