1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 17:07:19 +02:00

fixes the parent include for tags when visiting index from any other page

This commit is contained in:
Daniel Klabbers
2021-06-11 00:15:21 +02:00
committed by Daniël Klabbers
parent 9627e40e72
commit 51790494ce

View File

@@ -85,7 +85,7 @@ export default function() {
// Translate that parameter into a gambit appended to the search query.
extend(DiscussionListState.prototype, 'requestParams', function(params) {
params.include.push('tags');
params.include.push('tags', 'tags.parent');
if (this.params.tags) {
params.filter.tag = this.params.tags;