Suppose that I want to edit a redirect page. If I click Edit button using left mouse button, the editor opens as expected. However, if I use middle button (to open the editor in a new tab), the editor opens for the target of the redirect, not for the redirect itself.
I found that left button clicks are handled by JavaScript, but a middle click results in loading a URL like https://en.wikipedia.org/w/index.php?title=Page_title&veaction=editsource. In particular, redirect=no parameter is not added, so a redirection is performed. Surprisingly, the behavior differs between veaction=edit and veaction=editsource: while for the former, redirect=no is implied (see task T67926), for the latter, it is not (see task T156042). So, either the behavior of veaction=editsource should be changed to match the behavior of veaction=edit, or redirect=no should be added to Edit button URL on redirect pages.