Page MenuHomeIn-Portal Phabricator

D116.id259.diff
No OneTemporary

File Metadata

Created
Sat, Jun 28, 8:50 PM

D116.id259.diff

Index: core/kernel/processors/main_processor.php
===================================================================
--- core/kernel/processors/main_processor.php
+++ core/kernel/processors/main_processor.php
@@ -161,7 +161,18 @@
*/
function Redirect($params)
{
- $this->Application->Redirect('external:' . $this->Link($params));
+ // By default link to current template.
+ $template = $this->SelectParam($params, 't,template');
+ $prefix = array_key_exists('prefix', $params) ? $params['prefix'] : '';
+
+ unset($params['t'], $params['template'], $params['prefix']);
+
+ // Pass "m" prefix, instead of "all", that is by default on Front-End.
+ if ( !array_key_exists('pass', $params) ) {
+ $params['pass'] = 'm';
+ }
+
+ $this->Application->Redirect($template, $params, $prefix);
return '';
}

Event Timeline