Skip to content

Commit

Permalink
Simplified phone LinkURL
Browse files Browse the repository at this point in the history
  • Loading branch information
gorriecoe committed Aug 8, 2018
1 parent a7a0a6b commit de9a3f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/models/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,7 @@ public function getLinkURL()
$LinkURL = $this->Email ? 'mailto:' . $this->Email : null;
break;
case 'Phone':
$phone = $this->obj('Phone')->PhoneFriendly();
$LinkURL = $phone ? 'tel:' . $phone : null;
$LinkURL = $this->obj('Phone')->PhoneFriendly()->RFC3966();
break;
case 'File':
case 'SiteTree':
Expand Down

0 comments on commit de9a3f3

Please sign in to comment.