diff --git a/layouts/shortcodes/tabpane.html b/layouts/shortcodes/tabpane.html
index 953cbe9dca..d22a59a193 100644
--- a/layouts/shortcodes/tabpane.html
+++ b/layouts/shortcodes/tabpane.html
@@ -101,7 +101,7 @@
{{ if $duplicate -}}
- {{ warnf "Tabpane on page '%s': duplicate language '%s' detected, disabling persistance of language to avoid multiple tab display." .Page.Title $duplicateLang -}}
+ {{ warnf "Tabpane on page '%s': duplicate language '%s' detected, disabling persistance of language to avoid multiple tab display." .Page.RelPermalink $duplicateLang -}}
{{ end -}}
{{ $duplicate = false -}}
{{ $langs = slice -}}