QuestionQ40

VerifiedDeveloping with Admin

An Adobe Commerce developer must add a new export option to the order grid. They added the following export-button code within sales_order_grid.xml:

Question Image

During testing, they are being redirected. What could cause this error?

Explanation

An ExportButton option’s url must be the valid path to the controller that handles the export request. An incorrectly structured controller path causes Magento to route the request to the wrong endpoint, which can result in a redirect. The ExportButton configuration requires a controller URL, label, and value; it does not require a form key for each export option.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!