In the file delete confirmation form (FileManagementDeleteFileConfirmForm.php) the route for the canceling option points to file_management_view.overview, which requires file_management:view to be installed. That is not a good idea at this point due to issue #3081139: Enable file_management_view is broken.

Comments

kurkuma created an issue. See original summary.

kurkuma’s picture

Added a check for the module file_management_view. Otherwise use the core file view path.
This allows to use the main module (file_management) with a modified core view to add the operations links and without using the file_management_view, which has other problems of its own.

  • dpacassi committed 2341dea on 8.x-1.x
    Issue #3081175 by kurkuma: File delete cancel path is wrong
    
dpacassi’s picture

Thanks for your report & patch kurkuma!
I've slightly changed the approach though, I'm check if the route exists, not if the module is enabled.
As for the fallback, I'm using the machine name of the standard view display which should work in such cases.

dpacassi’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.