Preserve ref_type while navigating the File Tree Browser

What does this MR do and why?

This MR ensures that the ref_type parameter is preserved when navigating through directories and files in the File Tree Browser (FTB). Previously, the ref_type would be lost during navigation, which could cause issues with proper reference type handling.

The change updates the router path generation to use buildURLwithRefType utility function, which appends the ref_type query parameter to URLs when navigating between tree and blob views.

References

Issue #581015 (closed)

Screenshots

2025-11-24_10.23.29

How to set up and validate locally

  1. Navigate to any repository in the File Tree Browser
  2. Ensure you're viewing a branch, tag, or commit with a specific ref_type
  3. Click through directories and files in the tree view
  4. Verify that the ref_type query parameter is preserved in the URL throughout navigation

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.

Edited by Jacques Erasmus

Merge request reports

Loading