Skip to content

fix: fix convert relative link to absolute in enqueue_links for response with redirect#956

Merged
vdusek merged 3 commits intoapify:masterfrom
Mantisus:fix-enqueue-links
Feb 4, 2025
Merged

fix: fix convert relative link to absolute in enqueue_links for response with redirect#956
vdusek merged 3 commits intoapify:masterfrom
Mantisus:fix-enqueue-links

Conversation

@Mantisus
Copy link
Copy Markdown
Collaborator

@Mantisus Mantisus commented Feb 3, 2025

Description

  • fix enqueue_links for response with redirect.

Issues

@Mantisus Mantisus requested review from Pijukatel and vdusek February 3, 2025 13:50
@Mantisus Mantisus self-assigned this Feb 3, 2025
@Mantisus Mantisus changed the title fix: fix enqueue_links for response with redirect fix: fix convert relative link to absolute in enqueue_links for response with redirect Feb 3, 2025
Copy link
Copy Markdown
Collaborator

@vdusek vdusek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea for a test? Couldn't we utilize httpbin? ... if there is no easy way, it is not necessary I would say. Otherwise LGTM 🙂.

@vdusek vdusek added this to the 107th sprint - Tooling team milestone Feb 3, 2025
@Pijukatel
Copy link
Copy Markdown
Collaborator

Any idea for a test? Couldn't we utilize httpbin? ... if there is no easy way, it is not necessary I would say. Otherwise LGTM 🙂.

I agree it would be nice to have a test for it to properly describe the scenario in which this is a problem. Maybe something from https://httpbin.org/#/Redirects can be used to create such scenario?

@Mantisus
Copy link
Copy Markdown
Collaborator Author

Mantisus commented Feb 3, 2025

Updated the current test for enqueue_links to work as expected behavior when a redirect exists

@vdusek vdusek merged commit 694102e into apify:master Feb 4, 2025
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.

SAME_HOSTNAME not working on non www URLs

3 participants