A
A
Alexander2020-10-22 13:28:38
whatsapp
Alexander, 2020-10-22 13:28:38

How to send a link with a hash in WhatsApp and Telgram?

We need share buttons for WhatsApp and Telgram, which contain a link with a hash, like https://mysyte.ru/#fajfeu3

If I do this, for example:

<a href="whatsapp://send?text=https://mysyte.ru/app/#c0847b02-0175-454d-fb4c-cd6009310c2e:93lxx1pw" data-action="share/whatsapp/share" title="Whatsapp " class="sharelink"><span class="icomoon whatsapp"></span> Whatsapp </a>

Then the hashtag is naturally perceived as the hashtag of the original whatsapp link and the text https://mysyte.ru/app/

is sent to the message. Escaping with a single quote (such as
whatsapp://send?text='https://bilist.ru/app/#c0847b02-0175-454d-fb4c-cd6009310c2e:93lxx1pw'
) Does not help.

How can I generate a link that will be processed as I need, so that the text https://mysyte.ru/app/#c0847b02-0175-454d-fb4c-cd6... flies to the messenger

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lesha, 2020-10-22
Madzhugin @Suntechnic

Use an encoded hashtag%23

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question