diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 7eff455e3..6f29affe2 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +### 2.31.1 +- `Improvement` - Default protocol for inline links changed to "https" + ### 2.31.0 - `New` - Inline tools (those with `isReadOnlySupported` specified) can now be used in read-only mode diff --git a/src/components/inline-tools/inline-tool-link.ts b/src/components/inline-tools/inline-tool-link.ts index 9b413a564..8f1fa0c7e 100644 --- a/src/components/inline-tools/inline-tool-link.ts +++ b/src/components/inline-tools/inline-tool-link.ts @@ -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 */ @@ -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;