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 42accf0 commit dd3db6aCopy full SHA for dd3db6a
1 file changed
bundle/Handler/Literal/CanonicalUrl.php
@@ -37,6 +37,10 @@ public function getMetaTags($tagName, array $params = []): array
37
return [];
38
}
39
40
+ if ($content->contentInfo->mainLocationId === null) {
41
+ return [];
42
+ }
43
+
44
$value = $this->urlGenerator->generate(
45
UrlAliasRouter::URL_ALIAS_ROUTE_NAME,
46
[
0 commit comments