Open dannyvw opened 4 years ago
@dannyvw where do you trigger this behaviour? Is it in the Media module? or in the media chooser in a pagepart?
@acrobat In the media popup modal. I have it temporarily fixed on our fork. Maybe you can use this https://github.com/insiders/KunstmaanBundlesCMS/commit/50140e5de2c74dfc1514b7f3d3d9976860d3ad01
When adding a new file in the media popup you will be redirected to the media with all available files. But this is wrong when you come from an popup where only images are allowed.
So you have a variable type with value file (click on add media > add file) and a variable type with value image. But this last one is not added in the request and also not added to the redirect.
Method: https://github.com/Kunstmaan/KunstmaanBundlesCMS/blob/master/src/Kunstmaan/MediaBundle/Controller/MediaController.php#L427