contao/core — Issue #3811: Frontend/ModuleSearch doesn't use generateFrontendUrl() for its results
Author: krnlde
Created: 2012-01-14 19:12:42+00:00
State: open

We are using Contao 2.10.2 and have a hierarchical ordered site structure:

* domain.tld
* sub.domain.tld
* sub2.domain.tld

When I search at domain.tld and get search results from sub.domain.tld (which is intended!) the generated URLs for the search results are NOT using the generateFrontendUrl(); method. I took a look at the Module and saw that the URL is built differently (system/modules/frontend/ModuleSearch.php:266):

```php
$objTemplate->href = $this->Environment->base . $arrResult[$i]['url'];
```

That's odd, because we are using the DomainLink extension which - of course - doesn't work for this URL.