We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
In the rich-text editor, auto-prepend "https://" to links which don't specify a protocol
```
Currently the non-interactive link widget will only accept links that begin 
with either "http://" or "https://". I propose that whenever a link does not, 
e.g. "www.google.com" we automatically prepend "http://www.google.com" to the 
link string that is stored.
```

Original issue reported on code.google.com by `jacobdav...@gmail.com` on 24 Aug 2014 at 9:43


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `extensions/rich_text_components/Link/Link.py`
Content:
```
1 # coding: utf-8
2 #
3 # Copyright 2014 The Oppia Authors. All Rights Reserved.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, softwar
12 # distributed under the License is distributed on an "AS-IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 
17 from extensions.rich_text_components import base
18 
19 
20 class Link(base.BaseRichTextComponent):
21     """A rich-text component for displaying links."""
22 
23     name = 'Link'
24     category = 'Basic Input'
25     description = 'A link to a URL.'
26     frontend_name = 'link'
27     tooltip = 'Insert link'
28 
29     _customization_arg_specs = [{
30         'name': 'url',
31         'description': (
32             'The link URL. It must start with http:// or https://'),
33         'schema': {
34             'type': 'custom',
35             'obj_type': 'SanitizedUrl',
36         },
37         'default_value': 'https://www.example.com',
38     }, {
39         'name': 'text',
40         'description': (
41             'The link text. If left blank, the link URL will be used.'),
42         'schema': {
43             'type': 'unicode',
44         },
45         'default_value': '',
46     }, {
47         'name': 'open_link_in_same_window',
48         'description': 'Open the link in the same window?',
49         'schema': {
50             'type': 'bool'
51         },
52         'default_value': False,
53     }]
54
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/extensions/rich_text_components/Link/Link.py b/extensions/rich_text_components/Link/Link.py
--- a/extensions/rich_text_components/Link/Link.py
+++ b/extensions/rich_text_components/Link/Link.py
@@ -29,7 +29,7 @@
     _customization_arg_specs = [{
         'name': 'url',
         'description': (
-            'The link URL. It must start with http:// or https://'),
+            'The link URL. If no protocol is specified, HTTPS will be used.'),
         'schema': {
             'type': 'custom',
             'obj_type': 'SanitizedUrl',

{"golden_diff": "diff --git a/extensions/rich_text_components/Link/Link.py b/extensions/rich_text_components/Link/Link.py\n--- a/extensions/rich_text_components/Link/Link.py\n+++ b/extensions/rich_text_components/Link/Link.py\n@@ -29,7 +29,7 @@\n     _customization_arg_specs = [{\n         'name': 'url',\n         'description': (\n-            'The link URL. It must start with http:// or https://'),\n+            'The link URL. If no protocol is specified, HTTPS will be used.'),\n         'schema': {\n             'type': 'custom',\n             'obj_type': 'SanitizedUrl',\n", "issue": "In the rich-text editor, auto-prepend \"https://\" to links which don't specify a protocol\n```\nCurrently the non-interactive link widget will only accept links that begin \nwith either \"http://\" or \"https://\". I propose that whenever a link does not, \ne.g. \"www.google.com\" we automatically prepend \"http://www.google.com\" to the \nlink string that is stored.\n```\n\nOriginal issue reported on code.google.com by `jacobdav...@gmail.com` on 24 Aug 2014 at 9:43\n\n", "before_files": [{"content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softwar\n# distributed under the License is distributed on an \"AS-IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nfrom extensions.rich_text_components import base\n\n\nclass Link(base.BaseRichTextComponent):\n    \"\"\"A rich-text component for displaying links.\"\"\"\n\n    name = 'Link'\n    category = 'Basic Input'\n    description = 'A link to a URL.'\n    frontend_name = 'link'\n    tooltip = 'Insert link'\n\n    _customization_arg_specs = [{\n        'name': 'url',\n        'description': (\n            'The link URL. It must start with http:// or https://'),\n        'schema': {\n            'type': 'custom',\n            'obj_type': 'SanitizedUrl',\n        },\n        'default_value': 'https://www.example.com',\n    }, {\n        'name': 'text',\n        'description': (\n            'The link text. If left blank, the link URL will be used.'),\n        'schema': {\n            'type': 'unicode',\n        },\n        'default_value': '',\n    }, {\n        'name': 'open_link_in_same_window',\n        'description': 'Open the link in the same window?',\n        'schema': {\n            'type': 'bool'\n        },\n        'default_value': False,\n    }]\n", "path": "extensions/rich_text_components/Link/Link.py"}], "after_files": [{"content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softwar\n# distributed under the License is distributed on an \"AS-IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nfrom extensions.rich_text_components import base\n\n\nclass Link(base.BaseRichTextComponent):\n    \"\"\"A rich-text component for displaying links.\"\"\"\n\n    name = 'Link'\n    category = 'Basic Input'\n    description = 'A link to a URL.'\n    frontend_name = 'link'\n    tooltip = 'Insert link'\n\n    _customization_arg_specs = [{\n        'name': 'url',\n        'description': (\n            'The link URL. If no protocol is specified, HTTPS will be used.'),\n        'schema': {\n            'type': 'custom',\n            'obj_type': 'SanitizedUrl',\n        },\n        'default_value': 'https://www.example.com',\n    }, {\n        'name': 'text',\n        'description': (\n            'The link text. If left blank, the link URL will be used.'),\n        'schema': {\n            'type': 'unicode',\n        },\n        'default_value': '',\n    }, {\n        'name': 'open_link_in_same_window',\n        'description': 'Open the link in the same window?',\n        'schema': {\n            'type': 'bool'\n        },\n        'default_value': False,\n    }]\n", "path": "extensions/rich_text_components/Link/Link.py"}]}