I would like to display a multi value media field and its file type and size in a content type and display it in a table layout. I thought using a view would be the best way to pull the media file type and file size and any references it has using views relations.
The view uses Relations to get the media type and size and uses a Contextual filter - Content ID from URL. Now I am printing the display in a node template like this using Twig tweak.
{{ drupal_view('materials', 'block_1') }}
The table and media values display fine when published on route entity.node.canonical.
But the media values do not display on other routes and tabs like /latest routename entity.node.latest_version and /full routename entity.node.preview. The table markup displays but not the media values inside. I have tried printing the view using the drupal_block method and had the same results.