From db5ebbe0770c810ecc803832cdc46973de5e0a6c Mon Sep 17 00:00:00 2001 From: Felippe Cerreia Date: Thu, 20 Feb 2020 19:35:09 -0800 Subject: [PATCH] change whatsapp share url --- src/Providers/Whatsapp.php | 2 +- tests/BasicTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Providers/Whatsapp.php b/src/Providers/Whatsapp.php index d47f65b..59239bc 100644 --- a/src/Providers/Whatsapp.php +++ b/src/Providers/Whatsapp.php @@ -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'], diff --git a/tests/BasicTest.php b/tests/BasicTest.php index 9c6cac6..c7e0178 100644 --- a/tests/BasicTest.php +++ b/tests/BasicTest.php @@ -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');