diff --git a/demo/skeleton/routes.yaml b/demo/skeleton/routes.yaml index a82c8bc68..092f25212 100644 --- a/demo/skeleton/routes.yaml +++ b/demo/skeleton/routes.yaml @@ -120,7 +120,7 @@ emsch_media_file: path: '/media-files{path}' requirements: { path: .+ } controller: 'emsch.controller.router::redirect' - query: '{"query":{"bool":{"must":[{"terms":{"_contenttype":["media_file"]}},{"terms":{"media_path":["%path%"]}}]}},"size":1}' + query: '{"query":{"bool":{"must":[{"terms":{"_contenttype":["media_file"]}},{"terms":{"media_path":["%path%"]}}]}},"size":1,"_source":{"excludes":["media_file._content","media_file._language","media_file._author","media_file._title","media_file._date"],"includes":["media_file.*"]}}' template_static: template/redirects/media_files.json.twig emsch_news_details: config: