]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fix: error when using bulk shaare with a single URL 1688/head
authorArthurHoaro <arthur@hoa.ro>
Tue, 19 Jan 2021 10:18:56 +0000 (11:18 +0100)
committerArthurHoaro <arthur@hoa.ro>
Tue, 19 Jan 2021 10:18:56 +0000 (11:18 +0100)
Make sure that header metadata associated with permalink is only used in linklist template.

Fixes #1686

tpl/default/includes.html
tpl/vintage/includes.html

index 3e3fb6640a52b366af7c3ad96b23484c5000f9b4..6be2a2ea7ef628a18e3f49c5ad2b15299cfbebd4 100644 (file)
@@ -19,7 +19,7 @@
 {/if}
 <link rel="search" type="application/opensearchdescription+xml" href="{$base_path}/open-search#"
       title="Shaarli search - {$shaarlititle}" />
-{if="! empty($links) && count($links) === 1"}
+{if="$template === 'linklist' && ! empty($links) && count($links) === 1"}
   {$link=reset($links)}
   <meta property="og:title" content="{$link.title}" />
   <meta property="og:type" content="article" />
index 2ce9da423af296bd4638f8408f2d487445135ddc..4fd78467e54d1cecd06115631861bc554a9448e2 100644 (file)
@@ -16,7 +16,7 @@
 {if="is_file('data/user.css')"}<link type="text/css" rel="stylesheet" href="{$base_path}/data/user.css#" />{/if}
 <link rel="search" type="application/opensearchdescription+xml" href="{$base_path}/open-search#"
       title="Shaarli search - {$shaarlititle|htmlspecialchars}" />
-{if="! empty($links) && count($links) === 1"}
+{if="$template === 'linklist' && ! empty($links) && count($links) === 1"}
   {$link=reset($links)}
   <meta property="og:title" content="{$link.title}" />
   <meta property="og:type" content="article" />