Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge 26679dd into 8bad7f9
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Aug 27, 2019
2 parents 8bad7f9 + 26679dd commit 9881c07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helper/Navigation/Sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ public function url(AbstractPage $page)
{
$href = $page->getHref();

if (! isset($href{0})) {
if (! isset($href[0])) {
// no href
return '';
} elseif ($href{0} == '/') {
} elseif ($href[0] == '/') {
// href is relative to root; use serverUrl helper
$url = $this->getServerUrl() . $href;
} elseif (preg_match('/^[a-z]+:/im', (string) $href)) {
Expand Down

0 comments on commit 9881c07

Please sign in to comment.