How to add an sms:number link to a menu?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite
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?










share|improve this question



























    up vote
    1
    down vote

    favorite
    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?










    share|improve this question























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      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?










      share|improve this question













      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?







      8 navigation






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 4 at 8:53









      Patrick Kenny

      13.8k1281202




      13.8k1281202




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          6
          down vote



          accepted










          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






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "220"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdrupal.stackexchange.com%2fquestions%2f268680%2fhow-to-add-an-smsnumber-link-to-a-menu%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            6
            down vote



            accepted










            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






            share|improve this answer
























              up vote
              6
              down vote



              accepted










              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






              share|improve this answer






















                up vote
                6
                down vote



                accepted







                up vote
                6
                down vote



                accepted






                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






                share|improve this answer












                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







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 4 at 9:00









                Anish Sheela

                335111




                335111



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdrupal.stackexchange.com%2fquestions%2f268680%2fhow-to-add-an-smsnumber-link-to-a-menu%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    這個網誌中的熱門文章

                    Is there any way to eliminate the singular point to solve this integral by hand or by approximations?

                    Why am i infinitely getting the same tweet with the Twitter Search API?

                    Carbon dioxide