Skip to content

Commit 4cc38ea

Browse files
committed
rename config for broken links exclude_paths to exclude_links
1 parent 1261fb7 commit 4cc38ea

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

config/seo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@
189189
// Add status codes that should be considered as broken links. Empty array means all status codes starting with a 4, 5 or 0.
190190
'status_codes' => [],
191191

192-
// If you wish to skip running some checks on some paths, list the paths
193-
// in the array below. You can use wildcards.
194-
'exclude_paths' => [
192+
// If you wish to skip running, list the URLs in the array below.
193+
// You can use exact match or wildcards to match on beginning of URLs: https://vormkracht10.nl/directory/*
194+
'exclude_links' => [
195195
//
196196
],
197197
],

src/Checks/Content/BrokenLinkCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private function isValidLink($link): bool
9191

9292
private function isExcludedLink($link): bool
9393
{
94-
$excludedPaths = config('seo.broken_link_check.exclude_paths');
94+
$excludedPaths = config('seo.broken_link_check.exclude_links');
9595
if (empty($excludedPaths)) {
9696
return false;
9797
}

tests/Checks/Content/BrokenLinkCheckTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
$check = new BrokenLinkCheck();
112112
$crawler = new Crawler();
113113

114-
config(['seo.broken_link_check.exclude_paths' => ['https://vormkracht10.nl/excluded']]);
114+
config(['seo.broken_link_check.exclude_links' => ['https://vormkracht10.nl/excluded']]);
115115

116116
Http::fake([
117117
'vormkracht10.nl' => Http::response('<html><head></head><body><a href="https://vormkracht10.nl/excluded">Excluded Link</a></body></html>', 200),

0 commit comments

Comments
 (0)