You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the CMSEditLink for a Folder, and there are lots of folders (i.e. more than one page worth), and the folder it not in the first page of the list of files / folder then you do not actually see the folder at when you open the CMSEditLink. Altogether, it is also a bit weird that the CMSEditLink shows the folder in the parent folder, rather than showing the contents of the folder.
How to reproduce
CMSEditLink opens like this:
Then, going to page 2:
you see the folder
(Note, I have hidden some confidential stuff).
Possible Solution
Link to the folder itself and when you click on edit, again, show the content of the folder and the folder in its parent folder.
Additional Context
No response
Validations
Check that there isn't already an issue that reports the same bug
Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)
The text was updated successfully, but these errors were encountered:
When you click "edit" on a folder it stays in the current context, which is always the folder itself - so you end up with http://example.com/admin/assets/show/2/edit/2 as the URL, while getCMSEditLink() does indeed give http://admin-remove-dnd.ddev.site/admin/assets/show/1/edit/2 (i.e. the parent folder's context).
I agree that's not ideal. Not exactly a bug but it is sub-optimal. The solution would be to update AssetAdmin::getFileEditLink() to use the folder's own ID instead of the parent ID.
Module version(s) affected
5+
Description
When I use the
CMSEditLink
for aFolder
, and there are lots of folders (i.e. more than one page worth), and the folder it not in the first page of the list of files / folder then you do not actually see the folder at when you open the CMSEditLink. Altogether, it is also a bit weird that the CMSEditLink shows the folder in the parent folder, rather than showing the contents of the folder.How to reproduce
CMSEditLink opens like this:
Then, going to page 2:

you see the folder
(Note, I have hidden some confidential stuff).
Possible Solution
Link to the folder itself and when you click on edit, again, show the content of the folder and the folder in its parent folder.
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)The text was updated successfully, but these errors were encountered: