Page MenuHomePhabricator

In emails URL-Decode URLs that wouldn't break
Closed, DuplicatePublicBUG REPORT

Description

Steps to Reproduce:
Subscribe to a page in non-English Wikipedia that includes non-English letters.
Let someone change a page in a non-English page you're subscribed to.
Check out the email content.

Actual Results:

As a user of the Russian Wikipedia, I often receive notifications about page changes. In English, it would look normal but in Russian, it looks like:

Здравствуйте, Nikolay Komarov!

31 августа 2020 участником Q-bit array была изменена страница проекта «Википедия» с именем «Википедия:Запросы к администраторам», см. текущую версию по ссылке:
https://ru.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%97%D0%B0%D0%BF%D1%80%D0%BE%D1%81%D1%8B_%D0%BA_%D0%B0%D0%B4%D0%BC%D0%B8%D0%BD%D0%B8%D1%81%D1%82%D1%80%D0%B0%D1%82%D0%BE%D1%80%D0%B0%D0%BC

См.
https://ru.wikipedia.org/w/index.php?title=%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%97%D0%B0%D0%BF%D1%80%D0%BE%D1%81%D1%8B_%D0%BA_%D0%B0%D0%B4%D0%BC%D0%B8%D0%BD%D0%B8%D1%81%D1%82%D1%80%D0%B0%D1%82%D0%BE%D1%80%D0%B0%D0%BC&diff=next&oldid=109023202
для ознакомления с изменением

These URLs are unreadable. Yes, even for a Russian. There are few people who can read URLencoded texts right away. Also, these URLs are 4x longer thus making the email body huge. A necessary link is often on the second screen which makes it all pretty inconvenient.

Expected Results:
Look how a normal URL with non-URLencoded letters look like: https://ru.wikipedia.org/wiki/Категория:Википедия:Изолированные_статьи/сирота0. Go ahead, click it. Every modern email-client understands and highlights it, every browser follows and opens it without a problem.

So why URLencode everything? I believe it's unnecessary.
Only the whitespaces and slashes and maybe several other chars should be URL-encoded, the rest of the article URL should remain in the plain letters.