Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rename_admin_paths
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
rename_admin_paths
Commits
fb29f759
Commit
fb29f759
authored
8 years ago
by
Lucas Gratien
Committed by
Raphaël Apard
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rename_admin_paths.module
+1
-1
1 addition, 1 deletion
rename_admin_paths.module
with
1 addition
and
1 deletion
rename_admin_paths.module
+
1
−
1
View file @
fb29f759
...
...
@@ -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
];
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment