Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/inline-tools/inline-tool-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export default class LinkInlineTool implements InlineTool {
}

/**
* Add 'http' protocol to the links like 'vc.ru', 'google.com'
* Add 'https' protocol to the links like 'vc.ru', 'google.com'
*
* @param {string} link - string to process
*/
Expand All @@ -374,7 +374,7 @@ export default class LinkInlineTool implements InlineTool {
isProtocolRelative = /^\/\/[^/\s]/.test(link);

if (!isInternal && !isAnchor && !isProtocolRelative) {
link = 'http://' + link;
link = 'https://' + link;
}

return link;
Expand Down