GoogleChromeLabs/link-to-text-fragment

Wrong link with rich text format with raw url

Closed this issue ยท 2 comments

On chrome and mac os and windows 10, if I use rich text with raw URL option

When I paste directly to a browser address bar, I get a functioning link toward the exact place I want.

Exemple : https://web.dev/text-fragments/#:~:text=boldly%20link%20where%20no%20one%20has%20linked%20before%3A%20text%20fragments

But if I paste the rich text with URL link first in a document and then click on the link:

Boldly link where no one has linked before: Text Fragments ๐Ÿ”—

https://web.dev/text-fragments/#:~:text=boldly%2520link%2520where%2520no%2520one%2520has%2520linked%2520before%253A%2520text%2520fragments

I get %2520 instead of %20 and I can't get directly to the highlighted area.

Thaks for the help, Bruno

Fixed via 3c5da4e.

Thanks, working great now! ๐ŸŽ‰