From a90c2041a49bf461179b38deb53f5cbbd5b620e8 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 15 Apr 2020 17:26:04 +0800 Subject: [PATCH] fix error link for homepage --- app/controllers/breadcrumb_widgets_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/breadcrumb_widgets_controller.rb b/app/controllers/breadcrumb_widgets_controller.rb index 1c8f11e..afd7c4a 100644 --- a/app/controllers/breadcrumb_widgets_controller.rb +++ b/app/controllers/breadcrumb_widgets_controller.rb @@ -7,7 +7,7 @@ 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, "url" => "?locale=#{locale.to_s}"} else p = Page.where(:page_id => crumb).first data << {"page_name" => p.name, "url" => "/#{locale.to_s}" + p.url}