Autolinker.js icon indicating copy to clipboard operation
Autolinker.js copied to clipboard

default generated link to https

Open lemoustachiste opened this issue 5 years ago • 2 comments

Hi,

Not sure if this is already an option, I searched the API and the issues but didn't find any clear way to do it.

When the url is https://example.com, the href becomes https://example.com, so that's good. But when the url is www.example.com or example.com, the href becomes http://(www).example.com. I was wondering if there would be an option to set that to https by default - without having to use the parsing callback?

Thanks

lemoustachiste avatar May 04 '20 15:05 lemoustachiste

This would be really nice to have, since some browsers are starting to push https by default: https://blog.mozilla.org/security/2020/11/17/firefox-83-introduces-https-only-mode/

5im-0n avatar Nov 17 '20 17:11 5im-0n

Hey, there’s currently no option, but PRs welcome!

gregjacobs avatar Nov 17 '20 17:11 gregjacobs