Skip to content

Commit 0fe6da3

Browse files
committed
links.config.php: Ignore fragments with badges
1 parent ec9d1cc commit 0fe6da3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/links/links.config.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,12 @@ function (string $url, string $location, string $file = null): bool {
114114
],
115115
'fragment' => [
116116
function (string $url, string $file = null): bool {
117-
// ## Commerce [[% include 'snippets/commerce_badge.md' %]]
118-
return str_ends_with($file, '.md')
119-
&& str_ends_with($url, 'permission_use_cases.md#commerce');
117+
return str_ends_with($file, '.md') && (
118+
// ## Commerce [[% include 'snippets/commerce_badge.md' %]]
119+
str_ends_with($url, '/permission_use_cases.md#commerce')
120+
// ### Ensure proper Captcha behavior [[% include 'snippets/experience_badge.md' %]] [[% include 'snippets/commerce_badge.md' %]]
121+
|| str_ends_with($url, '/reverse_proxy.md#ensure-proper-captcha-behavior')
122+
);
120123
},
121124
function (string $url, string $file = null): bool {
122125
return str_starts_with($url, 'https://classic.yarnpkg.com/en/docs/')

0 commit comments

Comments
 (0)