Page MenuHomePhabricator

redirect-only messages
Closed, ResolvedPublic

Description

Author: dannychia

Description:
ParserFunctions should be amended such that some text can be made to appear only on redirected URLs.

Example: Suppose that A redirects to B. We should be able to put something likr {{#redirect:A|A redirects here}} on B, so that the text "A redirects here" will appear on B only if the user accesses A.


Version: unspecified
Severity: enhancement

Details

Reference
bz10990

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:50 PM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz10990.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

This isn't possible at the moment; redirects are handled at a much higher level than page rendering, and the parser doesn't know what page was requested.

It's also inadvisable; redirects should be transparent to readers.

The software already tells you you were redirected. People must be adding those messages for some other reason, then, such as finding the backlink to the other page when you *weren't* redirected.

  • Bug 11532 has been marked as a duplicate of this bug. ***
  • This bug has been marked as a duplicate of bug 2012 ***