Skip to content

Commit 83dccac

Browse files
Fix parse_url() path error on home page in Rules\ThreeSegmentUrls
The report queue fails as soon as it gets to the home page. This is caused by the missing path index. Same fix as abd1697 for similar bug #111 .
1 parent abd1697 commit 83dccac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Reporting/Rules/ThreeSegmentUrls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function siteWarningComment()
2727

2828
public function processPage()
2929
{
30-
$url = parse_url($this->page->url())['path'];
30+
$url = parse_url($this->page->url())['path'] ?? '/';
3131
$this->slashes = substr_count($url, '/');
3232
}
3333

0 commit comments

Comments
 (0)