Skip to content

Fix URL generation for links with spaces

Vasilii Iakliushin requested to merge 470038_fix_url_generation into master

What does this MR do and why?

Contributes to #470038

Problem

project_network_path doesn't use @ref with an extracted reference in NetworkController. The URL generation fails and returns a 500 error.

Solution

Provide a correct reference object to project_network_path

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-07-01_at_15.08.20 Screenshot_2024-07-01_at_15.07.49

How to set up and validate locally

  1. Visit http://gdk.test:3000/gitlab-org/gitlab-test/-/network/main/%20
  2. The page should load without a 500 error

Merge request reports