Skip to content

fix: apply skip rules to redirect targets#835

Open
alejosworkstuff wants to merge 1 commit into
JustinBeckwith:mainfrom
alejosworkstuff:fix/skip-redirect-targets
Open

fix: apply skip rules to redirect targets#835
alejosworkstuff wants to merge 1 commit into
JustinBeckwith:mainfrom
alejosworkstuff:fix/skip-redirect-targets

Conversation

@alejosworkstuff

Copy link
Copy Markdown

Summary

  • When linksToSkip is configured, redirects are followed manually so each Location target is checked against skip patterns before a request is made
  • Prevents auto-followed redirects from bypassing skip rules and hitting external URLs (reported in Skipping is not applied to redirects #827)
  • Adds regression tests for skipped external redirect targets and allowed internal redirect chains

Test plan

  • npm test (240 tests pass)
  • npm run lint
  • New tests verify external redirect targets are skipped without HTTP requests

Fixes #827

Made with Cursor

When linksToSkip is configured, follow redirects manually and check each Location target against skip patterns before requesting it. Fixes cases where auto-followed redirects bypassed skip rules and hit external URLs.

Fixes JustinBeckwith#827

Co-authored-by: Cursor <cursoragent@cursor.com>
@alejosworkstuff

Copy link
Copy Markdown
Author

Hey @JustinBeckwith, just a heads-up that all 240 local tests (including the new regression tests for #827) are passing. Ready for review whenever you have a moment to unblock the CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skipping is not applied to redirects

1 participant