Media Library Breadcrumbs Broken for Deeply Nested Folders (404 Error)
### Node Version

20.18.0

### NPM/Yarn/PNPM Version

npm 10

### Strapi Version

5.10.2

### Operating System

Linux (Debian/Ubuntu)

### Database

MySQL

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

There's a problem with the Media Library's breadcrumb navigation when you have folders inside other folders (nested folders). If you create a series of folders within each other, like Folder1 > Folder2 > Folder3, and you're looking at the contents of Folder3, trying to go back to Folder1 using the breadcrumb links at the top leads to a 404 error.

### Steps to Reproduce

1. Open Strapi's Media Library.
2. Create a folder named Folder1.
3. Inside Folder2, create a folder named Folder3.
4. Go into the Folder3 folder.
5. At the top, in the breadcrumb trail, click on Folder1.

### Expected Behavior

Clicking on Folder1 should take you back to the Folder1 folder, showing its contents.

### Logs

```shell
{"data":null,"error":{"status":404,"name":"NotFoundError","message":"Not Found","details":{}}}
```

### Code Snippets

_No response_

### Media

<img width="476" alt="Image" src="https://github.com/user-attachments/assets/ff1c320c-0da9-43fd-b65e-18aeb3f9fa7c" />

### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).