Forum Discussion
Announcing a new way to paste URLs, Link format!
Hi Everyone,
I'm happy to announce that in the Canary and Dev channels, copying links within the contents of the web page now supports the Link format, much like copying URLs from the Address Bar has since Missy's original post.
Please give copying and pasting links within a page a try and send us your feedback.
On behalf of the team working to simplify pasting of links, thank you in advance for your feedback on in-page links!
Jared
JaredB81 One bug I reported via feedback is when you right click on Articles above and copy link.
This produces Articles (microsoft.com). Where is the " (microsoft.com)" text coming from? Click on the Microsoft Edge Insider link that is adjacent and it produces Microsoft Edge Insider without the extra text.
The the Link Preview Format clipboard data JSON has a different title still.
"image_url":"https://cdn.techcommunity.microsoft.com/lithium/TechCommunity-DefaultHero-2.png","preferred_format":"text/h
tml;content=titled-hyperlink","title":"Articles - Microsoft Tech Community","type":"website","url":"https://techcommunit
y.microsoft.com/t5/articles/bd-p/EdgeInsiderAnnouncements"}
- JaredB81Oct 01, 2020Former Employee
Thank you, rshupak. As always, you have a very keen eye. We append the domain when it isn't included in the title text so that it's clear what the content is related to.
Do you have a preference between the text in your example (with the appended domain) vs. the Link text as specified in the Link Preview Format clipboard data's JSON payload?
Thanks,
Jared- rshupakOct 01, 2020Iron Contributor
The title in the JSON is the title I would see if I navigated to that page and copied from the address bar. I do not see any network traffic in the dev tools and haven't looked to watch network traffic from my PC but I wonder if you are calling an online service which takes a URL and returns that info. I know Bing has such a service which some Microsoft products and services use. Do you know?
I do not like the domain being added. This breaks consistency that when I copy a link from one document to another that it isn't copied as I see it. Compare this to the same scenario when copying a link in Word or an Outlook email. Right click on a link, pick Copy hyperlink, then paste. It matches.
This also creates silly cases such as when you visit https://www.bankofamerica.com/ and copy from the address bar. The title in the HTML format is "https://www.bankofamerica.com/" because you don't recognize "Bank of America" as "bankofamerica". You could fix this but it isn't easy to consider all cases of how names map. Bank Of America also uses "bofa.com". Citibank uses citibank.com and citi.com and others. Next, consider IRIs like https://www.смарт-скиллс.рф. The title copied here is "https://www.xn----7sbzhgab7ageef.xn--p1ai/". Do you think that the punycode domain name is useful? Do you look for either the IDN or the punycode in the title?
Editing to add one more case I forgot to mention. In some cases the domain name doesn't quite match the localized version of the name. Consider https://lt.wikipedia.org/wiki/Microsoft which is titled as "https://lt.wikipedia.org/wiki/Microsoft" because the localized Vikipedija doesn't match Wikipedia.
- rshupakOct 02, 2020Iron Contributor
JaredB81 I should point out that these issues manifest with localized Microsoft.com. As an example, https://account.microsoft.com/privacy/?lang=ru-RU has the title "https://account.microsoft.com/privacy/?lang=ru-RU" because they transliterated Microsoft into Cyrillic. I expect that this will be a very common issue with non-Latin language pages hosted on sites that use non-IDN domain names.