diff --git a/src/wuttaweb/templates/grids/vue_template.mako b/src/wuttaweb/templates/grids/vue_template.mako index d6e1398..47720fa 100644 --- a/src/wuttaweb/templates/grids/vue_template.mako +++ b/src/wuttaweb/templates/grids/vue_template.mako @@ -653,9 +653,21 @@ params[filter.key+'.verb'] = filter.verb } } - if (Object.keys(params).length) { - params.filter = 'true' - } + + ## nb. we used to add filter=true only if some + ## filter(s) is currently active, but that can cause + ## problems when sharing a link for a grid which + ## *currently* has no active filters, but which does + ## have *default* filters. so for now we always + ## declare filters to be "in effect" even if there + ## are none active. hopefully that does not break + ## anything else but this note is here just in case. + + ## if (Object.keys(params).length) { + ## params.filter = 'true' + ## } + params.filter = 'true' + return params },