When clicking a sub folder inside an asset selector modal, the browser navigates to the subfolder's URL instead of just opening the folder inside the modal.
Steps to reproduce
Create a volume and a filesystem
Create a sub folder in the volume
From an assets field, click "Add an asset"
Inside the asset selector modal, click on a subfolder
Expected behavior
The sub folder should open inside the modal, allowing the author to select images in that folder.
Actual behavior
The browser navigates to the sub folder's URL, e.g. /admin/assets/images/subfolder.
What happened?
Description
When clicking a sub folder inside an asset selector modal, the browser navigates to the subfolder's URL instead of just opening the folder inside the modal.
Steps to reproduce
Expected behavior
The sub folder should open inside the modal, allowing the author to select images in that folder.
Actual behavior
The browser navigates to the sub folder's URL, e.g.
/admin/assets/images/subfolder
.https://github.com/craftcms/cms/assets/298510/a6c15ab9-3e31-453f-9ff8-7a84b33c0ac3
Craft CMS version
5.0.0-alpha.9
PHP version
8.2
Operating system and version
macOS 12.6, MS Edge 121.0.2277.83
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
-