Tree controls loaded instead of blob controls after refreshing a file page
Summary
After testing Permalink button behaviour I refreshed the blob page, but it loaded tree controls instead of blob controls.
Steps to reproduce
- Open Project / Repository and select a file.
- Click Permalink button. The url should update.
- Select a line number and click Permalink button again.
- Click go back button in your browser
Example Project
What is the current bug behavior?
Moving back to the same blob page, but with different permalink in URL loads tree controls instead of blob.
Using breadcrumbs to navigate to project root folder results in 404.
What is the expected correct behavior?
A blob page should load with a line from the permalink highlighted, with blob controls.
Relevant logs and/or screenshots
Production
Screen_Recording_2025-03-12_at_10.11.25
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
**gon.features**:{
advancedContextResolver: true
blobOverflowMenu: false
directoryCodeDropdownUpdates: false
duoChatDynamicDimension: true
duoChatMultiThread: true
filterBlobPath: false
findAndReplace: false
inlineBlame: false
mergeRequestDashboard: true
newProjectCreationForm: false
organizationSwitching: false
removeMonitorMetrics: true
searchButtonTopRight: false
uiForOrganizations: false
vscodeWebIde: true
vulnerabilityReportTypeScannerFilter: false
workItemsClientSideBoards: false
workItemsViewPreference: true
}(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)(we will only investigate if the tests are passing)

