Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check original URL against depth tree when visited link is a redirect #467

Merged
merged 6 commits into from
Jul 16, 2024

Conversation

superpenguin612
Copy link
Contributor

Fixes #466.

Could, in theory, pass only the original link to addToDepthTree instead, if a technically breaking change is undesirable.

@freekmurze
Copy link
Member

Is it possible to add a test for this to make sure the problem is fixed by this code?

@superpenguin612
Copy link
Contributor Author

The latest commit adds a test that fails on main, but succeeds on this branch.

src/Crawler.php Outdated Show resolved Hide resolved
@freekmurze
Copy link
Member

The tests are failing. Could you take a look?

@superpenguin612
Copy link
Contributor Author

Sorry about that!

@freekmurze freekmurze merged commit 34e51dc into spatie:main Jul 16, 2024
10 checks passed
@freekmurze
Copy link
Member

Thanks!

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.

Using a maximum depth prevents redirected links from being crawled
2 participants