Jump to content

tel: prefix not recognised by addChild()


gbotica

Recommended Posts

I've noticed that using the 'tel:' prefix in a URI for addChild() does not work correctly. The "tel:" is appended to the current page URL, rather than recognising it as an absolute reference.

 

Hence, the code as provided here: http://docs.whmcs.com/Editing_Client_Area_Menus#Move_the_.E2.80.9CContact_Us.E2.80.9D_link_to_the_secondary_navigation_bar_and_add_more_contact_options does not work as expected.

 

   // Add the call us link to the link's drop-down menu.
   $contactUsLink->addChild('call-us', array(
       'label' => 'Call us',
       'uri' => 'tel:+18005551212',
       'order' => 2,
       'icon' => 'fa-mobile',
   ));

 

The above results in the href outputting as: http://whmcsdomain.com/tel:+18005551212

 

Unless I'm missing something, this would appear to be a bug.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated