Skip to content

Add custom encoding for repository path for commit data

What does this MR do and why?

Add custom encoding for repository path for commit data

Encodes a repository path for use in URLs, handling special characters that could interfere with URL parsing while preserving path separators and commonly used characters.

Adds url utility function specific to repository module that can be further extended for other use cases.

References

Screenshots or screen recordings

Before After
Screenshot_2025-08-05_at_15.35.13 Screenshot_2025-08-05_at_15.34.54

How to set up and validate locally

  1. Go to Project / Repository
  2. Create a folder with # in the directory name.
  3. Go to that folder. Verify that commit data is loaded and you can see information in the files table.

MR acceptance checklist

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

Closes #550905 (closed)

Edited by Paulina Sedlak-Jakubowska

Merge request reports

Loading