# How can i get url links of all products in a category?

**URL:** <https://forum.shopware.com/t/how-can-i-get-url-links-of-all-products-in-a-category/67032>\
**Category:** General Questions (EN)\
**Created:** [19. Mai 2020 um 06:39 UTC](https://forum.shopware.com/t/how-can-i-get-url-links-of-all-products-in-a-category/67032 "2020-05-19T06:39:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssali](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@ssali](https://forum.shopware.com/u/ssali)\
**Post date:** [19. Mai 2020 um 06:39 UTC](https://forum.shopware.com/t/how-can-i-get-url-links-of-all-products-in-a-category/67032/1 "2020-05-19T06:39:38Z")

</div>

i would like to get all url links of products in a given category in shopware 6?

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [22. Mai 2020 um 16:15 UTC](https://forum.shopware.com/t/how-can-i-get-url-links-of-all-products-in-a-category/67032/2 "2020-05-22T16:15:46Z")

</div>

Have you tried to create an SQL query for that?

---

<div class="post-metadata">

**Author:** ![ssali](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@ssali](https://forum.shopware.com/u/ssali)\
**Post date:** [25. Mai 2020 um 17:48 UTC](https://forum.shopware.com/t/how-can-i-get-url-links-of-all-products-in-a-category/67032/3 "2020-05-25T17:48:03Z")

</div>

i was able to use the seoUrl function to get the links of a particular product&nbsp; {{ seoUrl(‘frontend.detail.page’, { productId: ‘1035e9ee7d27486e9f30ed88939fece1’ }) }} i would like to get an idea of getting the productId of all products in a category using the seoUrl function

---

<div class="post-metadata">

**Author:** ![yicdeniz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/yicdeniz/32/7847_2.png) [@yicdeniz](https://forum.shopware.com/u/yicdeniz)\
**Post date:** [2. Juni 2020 um 11:10 UTC](https://forum.shopware.com/t/how-can-i-get-url-links-of-all-products-in-a-category/67032/4 "2020-06-02T11:10:36Z")

</div>

Hey Dude,

i have the some problem.

URLs for product detail pages like this: _{{ category.name |lower }}/{{ product.translated.name |lower}}-{{ product.productNumber &nbsp;|lower}}_ dont work.

The variable {{ category.name }} isnt avaible for products.

I have only one category in my webshop, so I have set the URL statically: YOUR-STATIC-CATEGORY-NAME/{{ product.translated.name |lower}}-{{ product.productNumber &nbsp;|lower}}

PS: Maybe this will be help you&nbsp;{% for part in product.mainCategory.breadcrumb %}{{ part |lower}}/{% endfor %}/{{ product.translated.name |lower}}-{{ product.productNumber &nbsp;|lower}}/
