Page MenuHomePhabricator

Incorrect page title generated in link, space with NAMESPACE variable
Closed, ResolvedPublic

Description

Author: dbenbenn

Description:
I noticed a red link at the top of [[FreeDOS]] to [[FreeDOS32]], a page that
exists. The problem is that the link is generated via

[[:{{NAMESPACE}}: FreeDOS32]]

The {{NAMESPACE}} is null, and the parser gets confused by the space: it makes a
red link to the page called _FreeDOS32.

See http://test.wikipedia.org/wiki/Bugzilla_report_on_NAMESPACE_red_links for a
more permanent example of this bug in action.


Version: 1.6.x
Severity: normal
URL: http://test.wikipedia.org/wiki/Bugzilla_report_on_NAMESPACE_red_links

Details

Reference
bz5427

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:10 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz5427.
bzimport added a subscriber: Unknown Object (MLST).

gangleri wrote:

This is like
Bug 5338: Heading colons and red / blue links - selfreference detection

gangleri wrote:

(In reply to comment #0)

The {{NAMESPACE}} is null, and the parser gets confused by the space: it makes a
red link to the page called _FreeDOS32.

re: *_FreeDOS32*
There are no heading and trailing spaces / underscores in page titles.
I agree that the url looks like
http://test.wikipedia.org/w/index.php?title=_Bug_5427&action=edit
but the header shows "Editing Bug 5427".
This might be confusing for some users.

best regards reinhardt [[user:gangleri]]

gangleri wrote:

*note*

In the past I have seen many such references containing links with {{NAMESPACE}}
in templates and some templates did fail when used in the image and category
namespace.
There are many aproaches on "inline" referencing. One is
Bug 2370: request for a <inline> ... </inline> extension