S
S
Sergey Protasov2016-06-04 21:26:58
PHP
Sergey Protasov, 2016-06-04 21:26:58

Link in a letter to a Russian-language domain, how to implement it?

Good evening. The task in the letter is to place a link to a Russian-language domain.
If I paste the text: <a href="http://домен.рф/активация/">Активация</a>, Gmail encodes the link with urlencode.

<a href="http://домен.рф/активация/" target="_blank" data-saferedirecturl="
https://www.google.com/url?q=http://%D0%B4%D0%BE%D0%BC%D0%B5%D0%BD.
%D1%80%D1%84%2F%D0%B0%D0%BA%D1%82%D0%B8%D0%B2%D0%B0%D1%86%D0%B8%D1%8F%2F
&amp;source=gmail">Активация</a>

If I encode the Punycode domain ( http://xn--d1acufc.xn--p1ai/), then the link is generally removed from the letter...
<a>Активация</a>
In any case, following the link from the letter is impossible... Has anyone encountered this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-06-04
@protasovse

<a href="http://домен.рф/активация/" target="_blank" data-saferedirecturl="
https://www.google.com/url?q=http://%D0%B4%D0%BE%D0%BC%D0%B5%D0%BD.
%D1%80%D1%84%2F%D0%B0%D0%BA%D1%82%D0%B8%D0%B2%D0%B0%D1%86%D0%B8%D1%8F%2F
&amp;source=gmail">Активация</a>

This option is normal.
In href, the link is normal, and in data-saferedirecturl, a link to www.google.com, where your domain is already passed in the parameters, and the parameters should be in urlencode.
After opening this link, Google should redirect to your link.
IMHO.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question