fix error link for homepage

This commit is contained in:
chiu 2020-04-15 17:28:22 +08:00
parent a90c2041a4
commit 302181b50e
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class BreadcrumbWidgetsController < ApplicationController
crumbs.each do |crumb|
if crumb == ""
p = Page.root
data << {"page_name" => p.name, "url" => "?locale=#{locale.to_s}"}
data << {"page_name" => p.name, "url" => "/?locale=#{locale.to_s}"}
else
p = Page.where(:page_id => crumb).first
data << {"page_name" => p.name, "url" => "/#{locale.to_s}" + p.url}