Skip to content

Fix incorrect new group url in import history

What does this MR do and why?

Related to #354681 (closed)

This MR fixes incorect url, when gitlab is hosted in root (so relative_path is empty)

Screenshots or screen recordings

New_Group___GitLab

How to set up and validate locally

  • Open "New group" -> Import (/groups/new)
  • Use https://gitlab.com as source instance and GeK1Nis4j-SY1X4sqE5c as personal access token (this token is from separate user on GitLab instance with 0 real data available, so we do not expose any security risks here)
  • Trigger some imports (no need to wait)
  • Visit history page /import/bulk_imports/history
  • Click link in "New group" column
  • It should work!

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Illya Klymov

Merge request reports