Skip to content
Snippets Groups Projects
Commit fb29f759 authored by Lucas Gratien's avatar Lucas Gratien Committed by Raphaël Apard
Browse files

Issue #2804667 by Fonski, B-Prod: Rename not working with query destination

parent 398a0694
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ function rename_admin_paths_url_outbound_alter(&$path, &$options, $original_path
if (!empty($options['query']['destination'])) {
// Replace user in the destination.
if (preg_match('/^admin(?:(?![^\/])|(?!(?!\%2F)))(.*)/', $options['query']['destination'], $matches)) {
if (preg_match('/^user(?:(?![^\/])|(?!(?!\%2F)))(.*)/', $options['query']['destination'], $matches)) {
$options['query']['destination'] = urlencode($rename_user_path_value) . $matches[1];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment