We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b69dca commit d3325cdCopy full SHA for d3325cd
src/Classes/ViewModels/ModuleViewModel.php
@@ -235,6 +235,12 @@ public function isChanged(): bool
235
return $this->module->isChanged();
236
}
237
238
+ public function getCanonicalUrl(): string
239
+ {
240
+ return MMLC_ROOT . $this->module->getArchiveName();
241
+ }
242
+
243
244
/**
245
* @param string $action
246
* @param string $ref
src/Templates/Head.tmpl.php
@@ -16,6 +16,7 @@
16
<?php } else { ?>
17
<title><?= $moduleView->getName() ?> - 📦 Modul fürs modified Shop System</title>
18
<meta name="description" content="<?= $module->getShortDescription() ?>"/>
19
+ <link rel="canonical" href="<?= $moduleView->getCanonicalUrl() ?>" />
20
<?php } ?>
21
22
<?php
0 commit comments