diff --git a/CHANGELOG.md b/CHANGELOG.md index ac2284e6f..5c9489724 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ All notable, unreleased changes to this project will be documented in this file. - Fix misaligned rich text draft controls - #725 by @orzechdev - Allow taxes to be configured per product - #728 by @dominik-zeglen - Fix style of product type attributes empty table - #744 by @orzechdev +- Fix order draft back button redirect - #753 by @orzechdev ## 2.10.1 diff --git a/src/orders/views/OrderDetails/index.tsx b/src/orders/views/OrderDetails/index.tsx index bdc0e1363..fa9f48385 100644 --- a/src/orders/views/OrderDetails/index.tsx +++ b/src/orders/views/OrderDetails/index.tsx @@ -54,6 +54,7 @@ import OrderOperations from "../../containers/OrderOperations"; import { TypedOrderDetailsQuery, useOrderVariantSearch } from "../../queries"; import { OrderDetails_order } from "../../types/OrderDetails"; import { + orderDraftListUrl, orderFulfillUrl, orderListUrl, orderUrl, @@ -515,7 +516,7 @@ export const OrderDetails: React.FC = ({ id, params }) => { onDraftFinalize={() => openModal("finalize")} onDraftRemove={() => openModal("cancel")} onOrderLineAdd={() => openModal("add-order-line")} - onBack={() => navigate(orderListUrl())} + onBack={() => navigate(orderDraftListUrl())} order={order} countries={maybe(() => data.shop.countries, []).map( country => ({