In the confirmation form of the resend receipt feature, both buttons "Resend receipt" and "Cancel" have unusual redirects.

  • "Resend receipt" button redirects to its own URL "/admin/commerce/orders/*/resend-receipt"
  • "Cancel" button redirects to the collection route "/admin/commerce/orders"

It would be better to just redirect to the canonical route "/admin/commerce/orders/*" in both cases.

Comments

vinay.p created an issue. See original summary.

vinay.p’s picture

Here's a patch, please review and confirm.

vinay.p’s picture

Status: Active » Needs review

  • jsacksick committed 7f49a810 on 8.x-2.x
    Issue #3420083 by vinay.p: Fix resend receipt redirects.
    
jsacksick’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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