diff --git a/layouts/partials/shortcodes/tabs.html b/layouts/partials/shortcodes/tabs.html
index 44dd033cca..5eaa662e1d 100644
--- a/layouts/partials/shortcodes/tabs.html
+++ b/layouts/partials/shortcodes/tabs.html
@@ -3,7 +3,7 @@
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'tabs' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration/#5180" $page.File.Path }}
{{- end }}
-{{- $groupid := .groupid | default (partial "make-random-md5.hugo" $page) }}
+{{- $groupid := .groupid | default (partial "make-random-md5.hugo" $page) | anchorize }}
{{- $color := .color }}
{{- $style := .style }}
{{- $title := .title }}
@@ -34,7 +34,7 @@
"color" $color
"content" .content
"icon" $icon
- "itemid" (printf "%s%s" ($title | $page.RenderString | plainify) ($icon | plainify))
+ "itemid" (printf "%s%s" ($title | $page.RenderString | anchorize) ($icon | anchorize))
"style" $style
"title" $title
) }}