aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2021-01-19 11:18:56 +0100
committerArthurHoaro <arthur@hoa.ro>2021-01-19 11:18:56 +0100
commit9e55beebfdbc7c8db8590792479689322b92a235 (patch)
treeb25bc882cdcb407633f434ac0bd6f850348cf11d /tpl/default
parentccd1862d5f6f2c0548473466aaff7ee99f9d67d2 (diff)
downloadShaarli-9e55beebfdbc7c8db8590792479689322b92a235.tar.gz
Shaarli-9e55beebfdbc7c8db8590792479689322b92a235.tar.zst
Shaarli-9e55beebfdbc7c8db8590792479689322b92a235.zip
Fix: error when using bulk shaare with a single URL
Make sure that header metadata associated with permalink is only used in linklist template. Fixes #1686
Diffstat (limited to 'tpl/default')
-rw-r--r--tpl/default/includes.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/default/includes.html b/tpl/default/includes.html
index 3e3fb664..6be2a2ea 100644
--- a/tpl/default/includes.html
+++ b/tpl/default/includes.html
@@ -19,7 +19,7 @@
19{/if} 19{/if}
20<link rel="search" type="application/opensearchdescription+xml" href="{$base_path}/open-search#" 20<link rel="search" type="application/opensearchdescription+xml" href="{$base_path}/open-search#"
21 title="Shaarli search - {$shaarlititle}" /> 21 title="Shaarli search - {$shaarlititle}" />
22{if="! empty($links) && count($links) === 1"} 22{if="$template === 'linklist' && ! empty($links) && count($links) === 1"}
23 {$link=reset($links)} 23 {$link=reset($links)}
24 <meta property="og:title" content="{$link.title}" /> 24 <meta property="og:title" content="{$link.title}" />
25 <meta property="og:type" content="article" /> 25 <meta property="og:type" content="article" />