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

Inserting a https-link in the web UI changes the link into the page title #4301

Closed
jgarplind opened this issue May 31, 2024 · 3 comments · Fixed by #4327
Closed

Inserting a https-link in the web UI changes the link into the page title #4301

jgarplind opened this issue May 31, 2024 · 3 comments · Fixed by #4327
Labels
bug Something isn't working

Comments

@jgarplind
Copy link
Contributor

Describe the bug

When pasting a full link (e.g. https://reactrouter.com/en/main/upgrading/future#future-flags) in the post composer, the link text is not pasted, instead the page title appears, and there is no obvious "linkiness" such as a blue color or a link card implying that things are in order.

To Reproduce

Steps to reproduce the behavior:

  1. Grab yourself a nice link, such as https://reactrouter.com/en/main/upgrading/future#future-flags
  2. Open the post composer
  3. Paste the link

Expected behavior

The link should be pasted as-is.

Screenshots

Bad:
image

Good (see below for how to achieve):
image

Details

  • Platform: Desktop Windows Edge
  • Platform version: Windows 11, Edge 125.0.2535.67
  • App version: Build version: 1.84.0; Bundle info: e6d2618 (prod); Bundle date: 24052420; Platform: web

Additional context

Simple enough workaround:

  1. Split the link into 2 parts: "h" and "ttps://......"
  2. Paste them individually
  3. Ta-da, expected behavior
@jgarplind jgarplind added the bug Something isn't working label May 31, 2024
@mary-ext
Copy link
Contributor

mary-ext commented Jun 2, 2024

seems to me the browser is copying both the URL and the page title, and because currently the composer isn't a plain text editor but rather a WYSIWYG editor pretending to be plain text, it has decided to paste the page title instead (in an attempt to get it to be a link)

I feel like we've had this issue before and the outcome was that we just don't know how to fix that yet, could you try seeing if Ctrl+Shift+V would give you the URL? that should get it to do a plain-text paste I believe.

@mary-ext
Copy link
Contributor

mary-ext commented Jun 2, 2024

I feel like we've had this issue before

Ah yes! This is a duplicate of #1321

@jgarplind
Copy link
Contributor Author

Hey @mary-ext, thanks for getting back!

I'll close this and continue the discussion in the original issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants