# URLs ohne Punkte

**URL:** <https://forum.shopware.com/t/urls-ohne-punkte/42245>\
**Category:** Administration\
**Created:** [16. Dezember 2016 um 12:21 UTC](https://forum.shopware.com/t/urls-ohne-punkte/42245 "2016-12-16T12:21:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![T\_Hartmann](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@T\_Hartmann](https://forum.shopware.com/u/T_Hartmann)\
**Post date:** [16. Dezember 2016 um 12:21 UTC](https://forum.shopware.com/t/urls-ohne-punkte/42245/1 "2016-12-16T12:21:26Z")

</div>

Hallo zusammen.

Ich versuche aus unseren Kategorie-URLs Punkte zu entfernen, bekomme dort aber einen Fehler:

```
{(sCategoryPath categoryID=$sCategory.id)|replace:".":"-"}/

```

> SmartyCompilerException’ with message ‚Syntax Error in template „d04ac891ee66821cccb7d4ff74f45b051e284781“&nbsp; on line 1 „{(sCategoryPath categoryID=$sCategory.id)|replace:".":"-"}/“&nbsp; - Unexpected " categoryID="‘&nbsp;
> 
> &nbsp;

Wo liegt hier der Fehler? Bei den Herstellern benutze ich einen ähnlichen ausdruck, der nicht bemängelt wird.

Danke für die Hilfe&nbsp;

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [16. Dezember 2016 um 13:31 UTC](https://forum.shopware.com/t/urls-ohne-punkte/42245/2 "2016-12-16T13:31:12Z")

</div>

Die runden Klammern haben da m.E nichts zu suchen.

---

<div class="post-metadata">

**Author:** ![T\_Hartmann](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@T\_Hartmann](https://forum.shopware.com/u/T_Hartmann)\
**Post date:** [10. Januar 2017 um 11:07 UTC](https://forum.shopware.com/t/urls-ohne-punkte/42245/3 "2017-01-10T11:07:28Z")

</div>

Ohne wird das Ersetzen ja auf den Parameter der&nbsp;sCategoryPath Funktion($sCategory.id) ausgeführt.&nbsp;

---

<div class="post-metadata">

**Author:** ![iLuHa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/iluha/32/8191_2.png) [@iLuHa](https://forum.shopware.com/u/iLuHa)\
**Post date:** [10. Januar 2017 um 11:15 UTC](https://forum.shopware.com/t/urls-ohne-punkte/42245/4 "2017-01-10T11:15:07Z")

</div>

Ggf. ein $ vor&nbsp;sCategoryPath setzen? Also $sCategoryPath.

---

<div class="post-metadata">

**Author:** ![SebastianKloepper](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sebastiankloepper/32/21435_2.png) [@SebastianKloepper](https://forum.shopware.com/u/SebastianKloepper)\
**Post date:** [10. Januar 2017 um 11:55 UTC](https://forum.shopware.com/t/urls-ohne-punkte/42245/5 "2017-01-10T11:55:28Z")

</div>

Hi,

du brauchst das erst in einer Variable per assign

Beispiel&nbsp;[https://forum.shopware.com/discussion/comment/182359/#Comment\_182359](https://forum.shopware.com/discussion/comment/182359/#Comment_182359)

Dann kannst du per replace den Punkt ersetzen

Sebastian
