In Magento 2.2.5, How to change the URL of save button in the admin grid.
Note: I am not creating grid through ui_component, I am creating grid using layout.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityIn Magento 2.2.5, How to change the URL of save button in the admin grid.
Note: I am not creating grid through ui_component, I am creating grid using layout.
You can modify the save button URL by overriding the getSaveUrl() function.
Navigate to
app/code/Vendor/Module/Block/Adminhtml/Module/Edit.php
add the following function in this file
public function getSaveUrl()
{
return $this->getUrl('module/controller/action');
}