diff --git a/layouts/partials/geturl.html b/layouts/partials/geturl.html
index 3a00321..393aa10 100644
--- a/layouts/partials/geturl.html
+++ b/layouts/partials/geturl.html
@@ -1,6 +1,7 @@
{{- $scratch := .scratch -}}
{{- $scratch.Set "bestLength" -1 -}}
{{- $scratch.Set "bestUrl" (printf "%s/code/%s" .siteSourceUrl .path) -}}
+{{- $scratch.Set "bestPath" "" -}}
{{- $filePath := .path -}}
{{- range $path, $url := .submoduleLinks -}}
{{- $bestLength := $scratch.Get "bestLength" -}}