Skip to content

Commit

Permalink
Fix: error when using bulk shaare with a single URL
Browse files Browse the repository at this point in the history
Make sure that header metadata associated with permalink is only used in linklist template.

Fixes shaarli#1686
  • Loading branch information
ArthurHoaro committed Jan 19, 2021
1 parent ccd1862 commit 9e55bee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tpl/default/includes.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
2 changes: 1 addition & 1 deletion tpl/vintage/includes.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down

0 comments on commit 9e55bee

Please sign in to comment.