Last modified: 2013-10-15 04:29:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17164, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15164 - Redirects aren't parsed before target extraction, breaks {{ns:}} and other stuff in redirects
Redirects aren't parsed before target extraction, breaks {{ns:}} and other st...
Status: RESOLVED DUPLICATE of bug 14323
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-14 12:30 UTC by Yury Tarasievich
Modified: 2013-10-15 04:29 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Yury Tarasievich 2008-08-14 12:30:21 UTC
Including the ns: namespace prefix in the #redirect argument breaks automatic redirection. E.g., the edit preview shows the redirect target in a numbered list item format, the template/page transclusion won't work etc.
Comment 1 Roan Kattouw 2008-08-14 18:25:51 UTC
Did you literally add "ns:" and expect it to work? In that case it's INVALID, because it isn't *supposed* to work. If you mean the "Talk:" or "User:" prefix by "ns:", that *is* a bug.
Comment 2 Yury Tarasievich 2008-08-14 19:32:05 UTC
Sorry, I mean 'ns name resolving' by the {{ns:}} construct, of course.

* Redirecting to [[{{ns:category}}:catname]] doesn't work, as described, but redirecting to [[<localised category ns>:catname]] works.

* Transclusion of template (which's a redirect to [[{{ns:template}}:tmplname]]) doesn't work, as described, but transclusion of template which's a redirect to [[<localised template ns>:tmplname]] works.

* Redirecting to [[{{ns:0}}:textname]] doesn't work, but redirecting to [[textname]] works (of course :).

Comment 3 Roan Kattouw 2008-08-14 21:10:57 UTC
Generalizing summary. The issue is that redirects aren't parsed (so {{ns:template}} and other things aren't expanded) before figuring out what the redirect target is.
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2008-08-14 21:13:54 UTC
This is working as designed, they were never meant to resolve all this fancy stuff.  Redirect resolution is currently a simple regex on the raw wikitext.  Refiling as enhancement request.
Comment 5 Chad H. 2009-03-19 18:07:37 UTC

*** This bug has been marked as a duplicate of bug 14323 ***
Comment 6 Yair Rand 2013-10-15 04:29:53 UTC
Is this really a duplicate of 14323? That bug seems to be specifically about parsing/displaying content outside the redirect line itself, whereas this bug seems to be about parsing the content/target of the redirect.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links