Page MenuHomePhabricator

Flow: no "Redirected from" and mediawiki.action.view.redirect on Flow pages.
Open, MediumPublic

Description

Normally when you visit a redirected MW page e.g. wp:Beatles

  • the page displays a nifty #contentSub div with a helpful (Redirected from [[OldPage]]) redirectedfrom message.
  • JS (mediawiki.action.view.redirect.js) changes the browser's location field to the URL of the redirected-to page.

Redirects to Flow boards don't do either, e.g. https://www.mediawiki.org/wiki/Talk:Flow_Portal silently shows the redirected-to Flow page with no indication except that the H1 title doesn't match the title in the URL.

Core's showRedirectFromHeader() in Article.php gives you this "for free", but Flow's View.php isn't an Article. Somehow the JsonSchema content type handles this correctly, see test redirect to schema on meta; maybe class WikitextContent is doing the work.


Version: master
Severity: normal

Details

Reference
bz58763

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:41 AM
bzimport set Reference to bz58763.
bzimport added a subscriber: Unknown Object (MLST).

bingle-admin wrote:

The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/648, but people from the community are welcome to contribute here and in Gerrit.

Also (or at least on my machine), I'm not even being redirected properly.

I stay on the page that should redirect, but get the flow board of the page it should redirect to.

I stay on the page that should redirect, but get the flow board of the page it should redirect to.

MediaWiki #REDIRECTs aren't like HTTP redirects: MW responds to the original URL request with the contents of the page to which you're "redirected", so you always "stay on the page that should redirect". The JS mentioned above makes it look like the URL changed in the browser.

Had that feedback during a workshop.

For example, when you click on https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:FdN:

Mattflaschen-WMF renamed this task from Flow: no "Redirected from" on Flow pages. to Flow: no "Redirected from" and mediawiki.action.view.redirect on Flow pages..May 17 2016, 6:54 PM

This is even more confusing and disturbing for redirects from user pages to Flow user_talk pages. Just found such a case on [[:mw:]]. The URL in browser's address bar shows User namespace, but actually you are on User_talk NS. People may be hesitant to write posts on such pages. This should be fixed ASAP.

I would like to note that this is a rather problematic and disconcerting problem for a newcomer. Ping for example @SBisson, if he can take a look, thanks !