Skip to content

Commit a8fa2d6

Browse files
authored
closes #146
Signed-off-by: Tobias Möritz <[email protected]>
1 parent 8d3a722 commit a8fa2d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/page-methods.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// https://developers.google.com/search/docs/specialty/international/localized-versions#all-method-guidelines
1515
$kirbyUrl = $this->kirby()->url('index');
1616
$siteUrl = $this->site()->url();
17-
$thisUrl = $this->url();
17+
$thisUrl = $this->url($this->kirby()->defaultLanguage()?->code());
1818

1919
if (strpos($siteUrl, $kirbyUrl) === 0 && strlen($siteUrl) > strlen($kirbyUrl)) {
2020
if (strpos($thisUrl, $siteUrl) === 0) {

0 commit comments

Comments
 (0)