$from =
esc(strip_tags($prefix .
$from));
// While we want to add a route within a group of '/',
// it doesn't work with matching, so remove them...
if ($from !== '/'
) { $from =
trim($from, '/'
);
} // When redirecting to named route, $to is an array like `['zombies' => '\Zombies::index']`.
if (is_array($to) &&
isset($to[0
])) { $to =
$this->
processArrayCallableSyntax($from,
$to);
} $options =
array_merge($this->currentOptions ??
[],
$options ??
[]);
// Route priority detect
if (isset($options['priority'
])) { $options['priority'
] =
abs((int) $options['priority'
]);
if ($options['priority'
] > 0
) { $this->prioritizeDetected = true;
} }