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 external URL with a fragment #12880

Merged
merged 2 commits into from
May 27, 2024
Merged

Conversation

andreslucena
Copy link
Member

🎩 What? Why?

When we add a link with a fragment in it, the number sign/hash/pound sign/octothorp ("#") is escaped. This is a problem because it's breaking some links like "https://cryptpad.fr/pad/#/2/pad/edit/Z1iziK+IDo-6TA7zokMdszVb/embed".

This PR fixes that.

I also found a missing title in this page, so I fixed that too.

📌 Related Issues

Testing

  1. Sign in
  2. Go to a proposal with comments
  3. Add a comment with this link https://cryptpad.fr/pad/#/2/pad/edit/Z1iziK+IDo-6TA7zokMdszVb/embed
  4. (Before the patch) see that once you go to the external URL, you have a 404
  5. (After the patch) once you go to the external URL, it shows the correct page

📷 Screenshots

Modal with the correct URL

♥️ Thank you!

@andreslucena andreslucena added the type: fix PRs that implement a fix for a bug label May 24, 2024
github-actions[bot]
github-actions bot previously approved these changes May 24, 2024
@alecslupu alecslupu self-assigned this May 26, 2024
Copy link
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

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

👍

@andreslucena
Copy link
Member Author

Adding the no-backport label, as this is already available in v0.29 and in v0.28

@andreslucena andreslucena added the no-backport Pull Requests that should not be backported label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: core no-backport Pull Requests that should not be backported type: fix PRs that implement a fix for a bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Links with hash character break
2 participants