Skip to content

Commit

Permalink
fix(demo): avoid to fetch media extracted data (_content, _author, ..…
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 authored Dec 11, 2023
1 parent 980ea1b commit 54aa913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/skeleton/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 54aa913

Please sign in to comment.