diff --git a/lib/remote/statusqueryhandler.cpp b/lib/remote/statusqueryhandler.cpp index 9df8f704e..ea6c54649 100644 --- a/lib/remote/statusqueryhandler.cpp +++ b/lib/remote/statusqueryhandler.cpp @@ -42,10 +42,14 @@ bool StatusQueryHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& re Dictionary::Ptr params = HttpUtility::FetchRequestParameters(request); + params->Set("type", type->GetName()); + if (request.RequestUrl->GetPath().size() > 1) { String attr = type->GetName(); boost::algorithm::to_lower(attr); params->Set(attr, request.RequestUrl->GetPath()[1]); + } else if (!params->Contains("filter")) { + params->Set("filter", "true"); } std::vector objs = FilterUtility::GetFilterTargets(qd, params);