Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix matching filter links in search results #7093

Merged
merged 1 commit into from
Apr 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Resources/public/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,13 @@ body.fixed .content-header .navbar.stuck {
word-wrap: break-word;
}

.sonata-search-result-list .box .nav-stacked > li.item > span.matches {
.sonata-search-result-list.nav-stacked > li.item > span.matches {
position: relative;
display: block;
padding: 10px 15px;
}

.sonata-search-result-list .box .nav-stacked > li.item > span.matches > a.label {
.sonata-search-result-list.nav-stacked > li.item > span.matches > a.label {
margin: 0 1px;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/Block/block_search_result.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ file that was distributed with this source code.
{% if match and ((filter.option('case_sensitive') is not same as(false) and term in match)
or filter.option('case_sensitive') is same as(false) and term|lower in match|lower)
%}
<a class="label label-primary" href="{{ admin.generateUrl('list', {'filter': {(filter.formName): term}}) }}">
<a class="label label-primary" href="{{ admin.generateUrl('list', {'filter': {(filter.formName): {'value': term}}}) }}">
{{ filter.option('label')|trans({}, filter.option('translation_domain', admin.translationDomain)) }}
</a>
{% endif %}
Expand Down