Skip to content

Saleor Core: the high performance, composable, headless commerce API.

wip

dominik-zeglencf4e9365c81d
diff --git a/saleor/static/dashboard-next/products/views/ProductImage.tsx b/saleor/static/dashboard-next/products/views/ProductImage.tsx
index bcd8e37e69..311d2f2508 100644
--- a/saleor/static/dashboard-next/products/views/ProductImage.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductImage.tsx
@@ -26,7 +26,7 @@ export const ProductImage: React.StatelessComponent<ProductImageProps> = ({
<Navigator>
{navigate => {
const handleBack = () =>
- navigate(productUrl(decodeURIComponent(productId)));
+ navigate(productUrl(encodeURIComponent(productId)));
const handleUpdateSuccess = (data: ProductImageUpdate) => {
if (
data.productImageUpdate &&
@@ -57,8 +57,8 @@ export const ProductImage: React.StatelessComponent<ProductImageProps> = ({
const handleImageClick = (id: string) => () =>
navigate(
productImageUrl(
- decodeURIComponent(productId),
- decodeURIComponent(id)
+ encodeURIComponent(productId),
+ encodeURIComponent(id)
)
);
const handleUpdate = (formData: {