head: self link as canonical url instead of og:url
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 26 Jan 2021 21:27:54 +0000 (22:27 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 22 Sep 2021 14:50:44 +0000 (16:50 +0200)
Reflect actual intent, probably with identical results.
Pages should (only?) specify an original og:url in case of later renames.

head.inc.php

index 5aec7168bbfa2c3a195a2c9960b4d7c84ca0577c..9bcae177218227b9d28b625aa9484f86461e75b6 100644 (file)
@@ -14,7 +14,7 @@
        <meta property="og:image" content="https://<?= $_SERVER['HTTP_HOST'] . '/' . htmlspecialchars($Page->thumb('640x')) ?>" />
 <?php } ?>
        <meta property="og:type" content="<?= $Page->meta['og:type'] ?? 'website' ?>" />
-       <meta property="og:url" content="https://<?= $_SERVER['HTTP_HOST'] . '/' . htmlspecialchars($Page->link) ?>" />
+       <link rel="canonical" href="https://<?= $_SERVER['HTTP_HOST'] . '/' . htmlspecialchars($Page->link) ?>" />
 <?php if (isset($Page->head)) print $Page->head; ?>
 </head>
 <body>