Commit c5098bc8 authored by Martijn de Wit's avatar Martijn de Wit Committed by Damien McKenna
Browse files

Issue #3087329 by Martijn de Wit, DamienMcKenna: Use HTTPS links instead of...

Issue #3087329 by Martijn de Wit, DamienMcKenna: Use HTTPS links instead of HTTP to external sites in metatag_open_graph.module.
parent fc4a77a1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
  og:description.
#2908527 by lapek, DamienMcKenna, christian.rolf, DrColossos: Views overwritten
  title in contextual filter.
#3087329 by Martijn de Wit, DamienMcKenna: Use HTTPS links instead of HTTP to
  external sites in metatag_open_graph.module.


Metatag 8.x-1.10, 2019-08-29
+2 −2
Original line number Diff line number Diff line
@@ -21,14 +21,14 @@ function metatag_open_graph_preprocess_html(&$variables) {
  $namespaces = [];
  if (!\Drupal::moduleHandler()->moduleExists('rdf')) {
    $namespaces = [
      'prefix' => 'og: http://ogp.me/ns#',
      'prefix' => 'og: https://ogp.me/ns#',
    ];
  }

  // Namespaces for Google+.
  if (isset($variables['itemtype'])) {
    $namespaces['itemscope'] = '';
    $namespaces['itemtype'] = "http://schema.org/{$variables['itemtype']}";
    $namespaces['itemtype'] = "https://schema.org/{$variables['itemtype']}";
  }

  // Append each namespace.
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ use Drupal\metatag\Plugin\metatag\Group\GroupBase;
 * @MetatagGroup(
 *   id = "open_graph",
 *   label = @Translation("Open Graph"),
 *   description = @Translation("The <a href='http://ogp.me/'>Open Graph meta tags</a> are used to control how Facebook, Pinterest, LinkedIn and other social networking sites interpret the site's content."),
 *   description = @Translation("The <a href='https://ogp.me/'>Open Graph meta tags</a> are used to control how Facebook, Pinterest, LinkedIn and other social networking sites interpret the site's content."),
 *   weight = 3
 * )
 */
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ use Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase;
 * @MetatagTag(
 *   id = "article_expiration_time",
 *   label = @Translation("Article expiration date & time"),
 *   description = @Translation("The date this content will expire, with an optional time value. Needs to be in <a href='http://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format."),
 *   description = @Translation("The date this content will expire, with an optional time value. Needs to be in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format."),
 *   name = "article:expiration_time",
 *   group = "open_graph",
 *   weight = 34,
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ use Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase;
 * @MetatagTag(
 *   id = "article_modified_time",
 *   label = @Translation("Article modification date & time"),
 *   description = @Translation("The date this content was last modified, with an optional time value. Needs to be in <a href='http://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format."),
 *   description = @Translation("The date this content was last modified, with an optional time value. Needs to be in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format."),
 *   name = "article:modified_time",
 *   group = "open_graph",
 *   weight = 33,
Loading