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 cleaning relative links cache key #793

Conversation

riccardoporreca
Copy link
Collaborator

Comment on lines +96 to 100
if type == :external
urls_detected = urls_detected.transform_keys do |url|
cleaned_url(url)
end
end
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually, I think we may want to only avoid escape_unescape for the external links, since the other part of cleaned_url that handles trailing "/", "#", "?" would still be relevant for internal links. Any input on this @gjtorikian?
If we keep part of cleaned_url for internal links, we should probably also include it to add_internal for consistency, similar to what is done for add_external

@gjtorikian gjtorikian merged commit cea95d6 into gjtorikian:main Mar 7, 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 this pull request may close these issues.

None yet

2 participants