# Wie Zugriff auf Seo-Url über Category-Id?

**URL:** <https://forum.shopware.com/t/wie-zugriff-auf-seo-url-ueber-category-id/102292>\
**Category:** Shopware 6 (German)\
**Created:** [15. Dezember 2023 um 10:03 UTC](https://forum.shopware.com/t/wie-zugriff-auf-seo-url-ueber-category-id/102292 "2023-12-15T10:03:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mac](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/mac/32/7855_2.png) [@mac](https://forum.shopware.com/u/mac)\
**Post date:** [15. Dezember 2023 um 10:03 UTC](https://forum.shopware.com/t/wie-zugriff-auf-seo-url-ueber-category-id/102292/1 "2023-12-15T10:03:55Z")

</div>

Hallo,

kann ich mir anhand der Category-Id die Seo-Url im Frontend ausgeben lassen?

Gruß  
Marco

---

<div class="post-metadata">

**Author:** ![HungMac](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/hungmac/32/20993_2.png) [@HungMac](https://forum.shopware.com/u/HungMac)\
**Post date:** [15. Dezember 2023 um 11:39 UTC](https://forum.shopware.com/t/wie-zugriff-auf-seo-url-ueber-category-id/102292/2 "2023-12-15T11:39:43Z")

</div>

Hi Mac,

Ist es das, was Sie meinen?

```auto
{{ seoUrl('frontend.navigation.page', { navigationId: category.id }) }}

```

Gruß  
Hung Mac

---

<div class="post-metadata">

**Author:** ![mac](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/mac/32/7855_2.png) [@mac](https://forum.shopware.com/u/mac)\
**Post date:** [18. Dezember 2023 um 09:15 UTC](https://forum.shopware.com/t/wie-zugriff-auf-seo-url-ueber-category-id/102292/3 "2023-12-18T09:15:10Z")

</div>

Das hatte ich bereits getestet. Aus  
`{{ seoUrl('frontend.navigation.page', { navigationId: 'c98cd1fa9cd842c18e167d62f1258c91' }) }}`  
wurde  
`https://test.shop/navigation/c98cd1fa9cd842c18e167d62f1258c91 `.

Ich hätte gerne als Link: `https://test.shop/test-kategorie/`.

Was mache ich falsch?

Gruß  
Marco

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [18. Dezember 2023 um 10:44 UTC](https://forum.shopware.com/t/wie-zugriff-auf-seo-url-ueber-category-id/102292/4 "2023-12-18T10:44:46Z")

</div>

Dann ist wahrscheinlich die SEO URL für die Kategorie nicht generiert worden. Du müsstest den Kategorie Indexer einmal laufen lassen. Der generiert dann normalerweise alle Kategorie SEO URLs.

---

<div class="post-metadata">

**Author:** ![mac](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/mac/32/7855_2.png) [@mac](https://forum.shopware.com/u/mac)\
**Post date:** [18. Dezember 2023 um 11:06 UTC](https://forum.shopware.com/t/wie-zugriff-auf-seo-url-ueber-category-id/102292/5 "2023-12-18T11:06:11Z")

</div>

Habe ich auch schon mit `dal:refresh:index` gemacht.  
Klappt trotzdem nicht.  
Teste mit SW 6.5.7.3

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [18. Dezember 2023 um 12:17 UTC](https://forum.shopware.com/t/wie-zugriff-auf-seo-url-ueber-category-id/102292/6 "2023-12-18T12:17:21Z")

</div>

Hättest du Datenbank Zugriff und könntest du überprüfen, ob ein entsprechender Eintrag mit navigation/c98cd1fa9cd842c18e167d62f1258c91 und einer SEO URL existiert. Dabei müsste die Spalte deleted den Wert 0 haben.
