Skip to content

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

Change url for products_from_collection view

Miraf9b3c22fdb0b
diff --git a/saleor/product/urls.py b/saleor/product/urls.py
index fbaa6ef8a0..1c8649c445 100644
--- a/saleor/product/urls.py
+++ b/saleor/product/urls.py
@@ -10,6 +10,6 @@ urlpatterns = [
views.category_index, name='category'),
url(r'(?P<slug>[a-z0-9-_]+?)-(?P<product_id>[0-9]+)/add/$',
views.product_add_to_cart, name="add-to-cart"),
- url(r'^(?P<product_id>[0-9]+)/$',
- views.products_from_collections, name="from_collections"),
+ url(r'^(?P<product_id>[0-9]+)/fromcollections/$',
+ views.products_from_collections, name="from-collections"),
]
diff --git a/templates/product/details.html b/templates/product/details.html
index 876334d0b2..72f0c4d749 100644
--- a/templates/product/details.html
+++ b/templates/product/details.html
@@ -177,5 +177,5 @@
</table>
</div>
</div>
- <div id="collections" class="product__collection" data-url="{% url 'product:from_collections' product.id %}"></div>
+ <div id="collections" class="product__collection" data-url="{% url 'product:from-collections' product.id %}"></div>
{% endblock content %}