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

fix: enqueueLinks should respect full URL of the current request for relative link resolution #1427

Merged
merged 9 commits into from
Jul 28, 2022

Conversation

B4nan
Copy link
Member

@B4nan B4nan commented Jul 27, 2022

No description provided.

@B4nan B4nan changed the title fix: enqueueLinks should respect full URL of the current for relative link resolution fix: enqueueLinks should respect full URL of the current request for relative link resolution Jul 27, 2022
Comment on lines +515 to +516
originalRequestUrl: crawlingContext.request.url,
finalRequestUrl: crawlingContext.request.loadedUrl,
Copy link
Member

Choose a reason for hiding this comment

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

Pretty big change so I hope it does not break something else 😅

Copy link
Member Author

@B4nan B4nan Jul 27, 2022

Choose a reason for hiding this comment

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

Those two are used directly only for relative link resolution, where we need full URL, so I believe this should be safe. We explicitly use just the origin from them in the resolveBaseUrlForEnqueueLinksFiltering method.

@B4nan B4nan force-pushed the browser-enq-relative-links branch from 01a7755 to 8270998 Compare July 28, 2022 11:22
@B4nan B4nan merged commit e72d02c into master Jul 28, 2022
@B4nan B4nan deleted the browser-enq-relative-links branch July 28, 2022 18:21
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.

None yet

2 participants