Page MenuHomePhabricator

Returning to viewing a redirect page should include redirect=no in VisualEditor
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
Redirect page is linked as /wiki/РФ.

What should have happened instead?:
Redirect page should be linked with redirect=no.

Other information (browser name/version, screenshots, etc.):
This task can be solved by switching from making up a URL in VE to making it so the URL is taken from ‘Page’ tab’s href value. Then, once T385340: Provide a direct link to go to a redirect target gets fixed, this task would be automatically get fixed as well. This sort of solution would also make this a bit more consistent in general.

Event Timeline

It's not only from the VisualEditor, but also from the talk page, proper editing page, and page history. There's also a similar problem with page information.

The logic should be that if a page is a redirect (which is quite easy to detect), then links to the tab should have &redirect=no appended to them.

I've realised that the problem with this is that the tabs use the links like

which cannot have &redirect=no appended to them.

Also, the code for this is in includes /skins.php

You are talking about the different problem that was described in T5324: On redirect pages, "article" tab in top bar should lead to nonredirected page (&redirect=no). That problem is (almost) resolved and shouldn’t be an issue any more, unless you are viewing the redirect page itself. This is about VE-specific thing where it modifies URL incorrectly for redirects.