craftcms / commerce

Fully integrated ecommerce for Craft CMS.
https://craftcms.com/commerce
Other
215 stars 169 forks source link

[5.x]: HTTP 404 when deleting shipping method rule or saving as new #3490

Closed stanislavprokopov closed 2 months ago

stanislavprokopov commented 2 months ago

What happened?

Description

Try to delete a shipping method rule or try to save as new rule, after clicking Yes in the confirmation popup you will be redirected to admin/commerce/shipping/shippingmethods/1, this path is not correct, correct one should be admin/commerce/store-management/primary/shippingmethods/1.

https://github.com/craftcms/commerce/blob/323ac6403f8a91812af074811fab37fb5e021e93/src/templates/store-management/shipping/shippingrules/_edit.twig#L35

Craft CMS version

5.1.1

Craft Commerce version

5.0.3

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

-

linear[bot] commented 2 months ago

PT-1709 [5.x]: HTTP 404 when deleting shipping method rule or saving as new

lukeholder commented 2 months ago

Thanks for reporting that. We have fixed it for the next release.

To get the fix early, change your craftcms/commerce requirement in composer.json to:

"require": {
  "craftcms/commerce": "5.x-dev#c8f52cf550b37ac0295770301b2403ebdd7a0632 as 5.0.5",
  "...": "..."
}

Then run composer update.

We will update this issue once the release is out.