# Introduce a new variable instead of reusing the parameter "url"

**URL:** <https://forum.shopware.com/t/introduce-a-new-variable-instead-of-reusing-the-parameter-url/64807>\
**Category:** Programmierung\
**Created:** [18. Februar 2020 um 11:46 UTC](https://forum.shopware.com/t/introduce-a-new-variable-instead-of-reusing-the-parameter-url/64807 "2020-02-18T11:46:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [18. Februar 2020 um 11:46 UTC](https://forum.shopware.com/t/introduce-a-new-variable-instead-of-reusing-the-parameter-url/64807/1 "2020-02-18T11:46:32Z")

</div>

Dieses mal keine Frage, sondern nur ein Hinweis an Shopware:

In der Datei \themes\Frontend\Responsive\frontend\_public\src\js\jquery.search.js steht an Zeile folgende Funktion (SW 5.6.x):

```
var convertUrlToRelativeUrl = function(url) {
 url = url.replace('https:', '');
 url = url.replace('http:', '');

 return url;
};

```

Wenn man dies in einem Plugin so benutzt, dann wird es im Shopware Store als Fehler erkannt:

> Introduce a new variable instead of reusing the parameter „url“

**Nur so als Hinweis.**
