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

Handle relative redirects #270

Closed
aeqz opened this issue Jan 25, 2023 · 0 comments · Fixed by #271
Closed

Handle relative redirects #270

aeqz opened this issue Jan 25, 2023 · 0 comments · Fixed by #271
Assignees
Milestone

Comments

@aeqz
Copy link
Contributor

aeqz commented Jan 25, 2023

Clarification and motivation

When following redirects, we are not handling relative location paths, which can be either relative to the base URL or to the parent path of the original request: https://en.wikipedia.org/wiki/HTTP_location

Acceptance criteria

  • When following redirects, Xrefcheck differentiates and properly handles relative URL location paths.
  • Consider to show them with the absolute link in any redirect chain related error.
@aeqz aeqz added this to the 0.3.0 milestone Jan 25, 2023
@aeqz aeqz self-assigned this Jan 26, 2023
aeqz added a commit that referenced this issue Jan 26, 2023
Problem: Currently, Xrefcheck can follow redirects with an absolute
location link, but it cannot handle relative ones.

Solution: After parsing the location link, obtain the corresponding
absolute link by using the original request one.
aeqz added a commit that referenced this issue Jan 26, 2023
aeqz added a commit that referenced this issue Jan 26, 2023
Problem: Currently, Xrefcheck can follow redirects with an absolute
location link, but it cannot handle relative ones.

Solution: After parsing the location link, obtain the corresponding
absolute link by using the original request one.
aeqz added a commit that referenced this issue Jan 27, 2023
Problem: Currently, Xrefcheck can follow redirects with an absolute
location link, but it cannot handle relative ones.

Solution: After parsing the location link, obtain the corresponding
absolute link by using the original request one.
@aeqz aeqz closed this as completed in #271 Jan 27, 2023
aeqz added a commit that referenced this issue Jan 27, 2023
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 a pull request may close this issue.

1 participant