Skip to content

Commit

Permalink
Merge pull request #28 from felcerreia/patch-1
Browse files Browse the repository at this point in the history
change whatsapp share url
  • Loading branch information
oscarotero authored Feb 21, 2020
2 parents bf48e99 + db5ebbe commit bd338fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Providers/Whatsapp.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function shareUrl()
$info = $this->page->get();

return $this->buildUrl(
'whatsapp://send',
'https://wa.me/',
null,
array(
'text' => $info['title'].' '.$info['url'],
Expand Down
2 changes: 1 addition & 1 deletion tests/BasicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function testProviders(Page $page)
$this->assertEquals($page->tumblr->shareUrl, 'https://www.tumblr.com/share?v=3&u=http%3A%2F%2Fmypage.com&t=Page+title');
$this->assertEquals($page->twitter->shareUrl, 'https://twitter.com/intent/tweet?text=Page+title+via+%40twitterUser&url=http%3A%2F%2Fmypage.com');
$this->assertEquals($page->vk->shareUrl, 'http://vk.com/share.php?url=http%3A%2F%2Fmypage.com&title=Page+title&image=http%3A%2F%2Fmypage.com%2Fimage.png');
$this->assertEquals($page->whatsapp->shareUrl, 'whatsapp://send?text=Page+title+http%3A%2F%2Fmypage.com');
$this->assertEquals($page->whatsapp->shareUrl, 'https://wa.me/?text=Page+title+http%3A%2F%2Fmypage.com');
$this->assertEquals($page->telegram->shareUrl, 'tg://msg?text=Page+title+http%3A%2F%2Fmypage.com');
$this->assertEquals($page->xing->shareUrl, 'https://www.xing.com/spi/shares/new?url=http%3A%2F%2Fmypage.com');
$this->assertEquals($page->viadeo->shareUrl, 'https://partners.viadeo.com/share?url=http%3A%2F%2Fmypage.com&comment=Page+title');
Expand Down

0 comments on commit bd338fc

Please sign in to comment.