Skip to content

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

Fix redirecting to product details page

Marcin Gębala4656a4535072
diff --git a/templates/dashboard/product/modal_product_image_confirm_delete.html b/templates/dashboard/product/modal_product_image_confirm_delete.html
index 1efbb7c8ae..019e5b9a5e 100644
--- a/templates/dashboard/product/modal_product_image_confirm_delete.html
+++ b/templates/dashboard/product/modal_product_image_confirm_delete.html
@@ -3,7 +3,6 @@
<form action="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=product_image.pk %}" method="post" novalidate>
{% csrf_token %}
- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#images">
<div class="modal-content">
<div class="row">
<div class="col s12">
diff --git a/templates/dashboard/search/results.html b/templates/dashboard/search/results.html
index 5878d87ef5..b29936dfb8 100644
--- a/templates/dashboard/search/results.html
+++ b/templates/dashboard/search/results.html
@@ -11,7 +11,7 @@
{% block breadcrumbs %}
<ul class="breadcrumbs">
- <li class="visible-s">{% trans "Search" context "Dashboard search" %}</li>
+ <li class="visible-s">{% trans "Search results" context "Dashboard search" %}</li>
</ul>
{% endblock %}
@@ -37,7 +37,7 @@
<li class="collection-item avatar list-item">
{% if result.content_type == 'product_product' %}
{% with product=result %}
- <a href="{% url 'dashboard:product-update' pk=product.pk %}">
+ <a href="{% url 'dashboard:product-detail' pk=product.pk %}">
<img src="{% product_first_image product size="60x60" method="crop" %}"
srcset="{% product_first_image product size="60x60" method="crop" %} 1x, {% product_first_image product size="120x120" method="crop" %} 2x"
class="circle teal" alt="{{ product.name }}">