**List of steps to reproduce** (step by step, including full links if applicable):
* Revert [[//vi.wikipedia.org/wiki/Template:Đổi tên2|:w:vi:Template:Đổi tên2]] to revision 66387992
* Go to [[//vi.wikipedia.org/wiki/Wikipedia:Đổi tên người dùng|:w:vi:Wikipedia:Đổi tên người dùng]] and purge the cache (if necessary)
* Click on a random "Đổi tên người dùng" link, preferably at the "Hộp cát → SandboxNDKDD" section, since Hộp cát is my sandbox account.
**What happens?**:
* The link is rendered as https://meta.wikimedia.org/w/index.php?title=Special:GlobalRenameUser&reason=per+%5B%5Bw%3Avi%3ASpecial%3APermalink%2F-%7Crequest+on+viwiki%5D%5D&oldname=T%C3%AAn+c%C5%A9&newname=T%C3%AAn+m%E1%BB%9Bi
** Decode: "per [[:w:vi:Special:Permalink/**-**|request on viwiki]]"
* However, the link on Template:Đổi tên2 works fine.
**What should have happened instead?**:
* REVISIONID should have output the current revision id of the page, and therefore the "reason" parameter will be decoded as "per [[:w:vi:Special:Permalink///Revision ID//|request on viwiki]]" when shown in log.