Skip to content

Resolve "Relative links in Vulnerability modal not clickable"

What does this MR do?

This MR brings a small change to the isSafeUrl utility so it considers root-relative URLs safe, meaning that all these patterns are valid:

  • http://gitlab.com/some/path
  • https://gitlab.com/some/path
  • /some/path

Additionally, the valuedFields computed property will force field field to be an URL pointing to vulnerability.blob_path (if available).

screenshot_01

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Closes #9283 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports