diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html
index 55320892..71ce58a2 100644
--- a/layouts/partials/breadcrumbs.html
+++ b/layouts/partials/breadcrumbs.html
@@ -4,10 +4,11 @@
{{- $lang_url := replace $url ( printf "%s" .Lang) "" }}
{{ i18n "home" | default "Home"}}
+ {{- $scratch := newScratch }}
{{- range $index, $element := split $lang_url "/" }}
- {{- $.Scratch.Add "path" (printf "%s/" $element )}}
- {{- $bc_pg := $.Site.GetPage ($.Scratch.Get "path") -}}
+ {{- $scratch.Add "path" (printf "%s/" $element )}}
+ {{- $bc_pg := $.Site.GetPage ($scratch.Get "path") -}}
{{- if (and ($bc_pg) (gt (len . ) 0))}}
{{- print " ยป " | safeHTML -}}{{ $bc_pg.Name }}