1

In Drupal 8.5, when you're adding a menu item, you can add a telephone number by setting the Link to tel:1-555-555-5555.

However, if you try to add an SMS link like sms:1-555-555-5555, it fails validation and says "The path 'sms:1-555-555-5555` is invalid."

What's the easiest way to override this so that I can add an sms link to the menu?

1 Answer 1

7

On the sites/default/services.yml

There is an option called filter_protocols

Add sms to it.

If file is not available, copy the file from default.services.yml to services.yml

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.