Skip to content

Commit abd1697

Browse files
committed
Fix parse_url() path error on sitemap home page. Closes #111.
1 parent d3009e5 commit abd1697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sitemap/Page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function with($data)
1515

1616
public function path()
1717
{
18-
return parse_url($this->loc())['path'];
18+
return parse_url($this->loc())['path'] ?? '/';
1919
}
2020

2121
public function loc()

0 commit comments

Comments
 (0)