Fix redirects modifying the host
What does this MR do?
This MR ensures that the redirect location is correctly constructed when redirecting from a URL in which the old path is a substring in the host.
Example of the bug
- Modify group with path
lab
tolaboratory
- Visit
https://gitlab.com/lab
- Get redirected to
https://gitlaboratory.com/gitlab
instead ofhttps://gitlab.com/laboratory
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Closes #32506
Merge request reports
Activity
assigned to @mkozono
marked the checklist item Changelog entry added, if necessary as completed
marked the checklist item Documentation created/updated as completed
marked the checklist item Conform by the merge request performance guides as completed
marked the checklist item Conform by the style guides as completed
marked the checklist item Squashed related commits together as completed
assigned to @DouweM
- Resolved by username-removed-1144264
- Resolved by username-removed-1144264
- Resolved by username-removed-1144264
assigned to @mkozono
assigned to @DouweM
Resolved conflicts with EE https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1944
mentioned in commit 5d5e6954
mentioned in commit ee712af7