Merge pull request #13143 from MrPetovan/bug/12684-category-link

Support special characters in category widget links
This commit is contained in:
Philipp 2023-05-20 17:42:09 +02:00 committed by GitHub
commit afa6e0ee3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,6 +178,10 @@ class Widget
$baseUrl = trim($baseUrl, '?') . '?';
}
array_walk($options, function (&$value) {
$value['ref'] = rawurlencode($value['ref']);
});
return Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/filter.tpl'), [
'$type' => $type,
'$title' => $title,