Drupal has a built-in filter of protocols which causes, for example, that you cannot add to links in the menu whatever crosses your mind but only such URL addresses that have some meaning and are allowed. But the filter of allowed protocols also manifests itself in the text. If you try to create a link redirecting to skype:name, you will run into problems. Even though it will be saved, the protocol skype: will be filtered out from the href attribute in the link.
How to get out of this? In Drupal 8 or 9 isn’t any administration page that would make it possible for you to edit the list of the allowed protocols. I’ll admit that I broke a sweat while building a website for one of my clients because of this recently.
Luckily the adjustment is quite easy, just an edit of one configuration file in Drupal will do the trick.
- Go to the folder web/sites/default/files. Duplicate the default file default.services.yml and save its copy under the name services.yml.
- In this file, search for YAML branch parameters : filter_protocols which contains bulleted list of the allowed protocols.
- To the default http, https, ftp and others add for example aforementioned skype and other as needed.
- Save the file, clear the cache of Drupal and try to create a link using the newly allowed protocol. You should be able to save it without any trouble now.