Data Export path is being set as the action for exposed filters form when using views_embed_view()

Created on 24 August 2020, about 4 years ago
Updated 15 May 2024, 6 months ago

Problem/Motivation

Hi all,
on fresh Drupal 9.0.3 installation (composer drupal/recommended-project), I'm displaying view using views_embed_view() in my custom module / controller.

    public function view()
    {
        $html = '';
        $view = views_embed_view('test', 'embed_1');
        $data['view'] = array('view' => $view);
        return $data;
    }

I have simple content view, one Embed display and one Data export display attached to the embed one. If I enable any exposed filtering (for the embed display), then the original submit action is replaced with the path for Data export display. Therefor any submission of exposed filter triggers data export.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇿Czech Republic Bohus Ulrych Pilsen (Czechia)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024