Page MenuHomePhabricator

Feature request: New variable: {{{REDIRECTEDFROM}}}
Closed, DeclinedPublic

Description

Author: villes01

Description:
Sometimes one would like to find out if a user arrived to a page via a redirect. What's more, one would also like to know from which specific page was the user redirected from. My suggestion is this: add a new variable called {{{REDIRECTEDFROM}}} which contains the name of the page from where the user was redirected. If the user was not redirected, let that variable be undefined.


Version: unspecified
Severity: enhancement

Details

Reference
bz17121

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:24 PM
bzimport set Reference to bz17121.
bzimport added a subscriber: Unknown Object (MLST).

Such a magic word makes the parser cache's working pretty much impossible. Suggest WONTFIX.

Agreed. Simply adding the URL parameter to a page would invalidate the parser cache, much less anytime someone arrived via redirect. Going ahead and WONTFIXing this.

On a tangent: maybe someone could whip up an extension for all these suggested magic words that break the parser cache. For those who really don't care about caching, I suppose.

villes01 wrote:

OK, sorry, I didn't realize this would break the cache. It just has to be done with javascript then.