diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html
index 71ce58a2..0ffbc095 100644
--- a/layouts/partials/breadcrumbs.html
+++ b/layouts/partials/breadcrumbs.html
@@ -1,7 +1,7 @@
{{- if (.Param "ShowBreadCrumbs")}}
{{- $url := replace .Parent.Permalink ( printf "%s" .Site.BaseURL) "" }}
- {{- $lang_url := replace $url ( printf "%s" .Lang) "" }}
+ {{- $lang_url := strings.TrimPrefix ( printf "%s/" .Lang) $url }}
{{ i18n "home" | default "Home"}}
{{- $scratch := newScratch }}
diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html
index 9ec5446f..df5170b6 100644
--- a/layouts/partials/templates/schema_json.html
+++ b/layouts/partials/templates/schema_json.html
@@ -19,7 +19,7 @@
{{- else if (or .IsPage .IsSection) }}
{{/* BreadcrumbList */}}
{{- $url := replace .Parent.Permalink ( printf "%s" .Site.BaseURL) "" }}
-{{- $lang_url := replace $url ( printf "%s" .Lang) "" }}
+{{- $lang_url := strings.TrimPrefix ( printf "%s/" .Lang) $url }}
{{- $bc_list := (split $lang_url "/")}}
{{- $scratch := newScratch }}