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

Suggestion link points to /content endpoint #862

Merged
merged 1 commit into from
Jan 3, 2023
Merged

Conversation

veloman-yunkan
Copy link
Collaborator

Should fix kiwix/kiwix-tools#589 (but a similar issue for a search result link will persist)

Directly pointing the suggestion link to a /content/... URL avoids an unnecessary redirection by the server (and an associated bug related to redirection of URLs with URI-encoded special symbols in them that - in the current implementation - go into the target URL in decoded form).

@codecov
Copy link

codecov bot commented Dec 26, 2022

Codecov Report

Base: 71.41% // Head: 71.41% // No change to project coverage 👍

Coverage data is based on head (d9342ac) compared to base (b3f1ab6).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #862   +/-   ##
=======================================
  Coverage   71.41%   71.41%           
=======================================
  Files          53       53           
  Lines        3740     3740           
  Branches     2077     2077           
=======================================
  Hits         2671     2671           
  Misses       1067     1067           
  Partials        2        2           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Directly pointing the suggestion link to a /content/... URL avoids
an unnecessary redirection by the server (and an associated bug
related to redirection of URLs with URI-encoded special symbols in
them that - in the current implementation - go into the target URL
in decoded form).
@mgautierfr mgautierfr merged commit 1e7baee into main Jan 3, 2023
@mgautierfr mgautierfr deleted the suggestion_link_fix branch January 3, 2023 10:07
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.

Question mark in article title caused broser to report "The page isn’t redirecting properly"
2 participants