From 017a2244736bffb1038b3acff6df32036d4abe08 Mon Sep 17 00:00:00 2001 From: Seokho Date: Thu, 9 May 2019 05:18:36 +0900 Subject: [PATCH] Fix glossary tooltip mismatch (#14227) --- layouts/shortcodes/glossary_tooltip.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/glossary_tooltip.html b/layouts/shortcodes/glossary_tooltip.html index 01385fa0522a2..a0bed81597bd8 100644 --- a/layouts/shortcodes/glossary_tooltip.html +++ b/layouts/shortcodes/glossary_tooltip.html @@ -5,7 +5,7 @@ {{- if not $glossary_items -}} {{- errorf "[%s] No glossary items found" site.Language.Lang -}} {{- else -}} -{{- $term_info := $glossary_items.GetMatch (printf "%s*" $id ) -}} +{{- $term_info := $glossary_items.GetMatch (printf "%s.md" $id ) -}} {{- if not $term_info -}} {{- errorf "[%s] %q: %q is not a valid glossary term_id, see ./docs/reference/glossary/* for a full list" site.Language.Lang .Page.Path $id -}} {{- end }}