Error when using views data export with block

Created on 10 August 2023, over 1 year ago

Problem/Motivation

This module provides 'Google Analytics Reports Page Block' to see the analytics data of individaul pages. But if data export is created and attached to the block, then there will be an errion on viewing the page
'Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "arg_0" for route "view.analytics_export_test.data_export_1" must match "[^/]++" ("/en-us" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 207 of core/lib/Drupal/Core/Routing/UrlGenerator.php).'

/en-us is the path of the page.

Steps to reproduce

  • Install the module and edit the block view admin/structure/views/view/google_analytics_reports_page/edit/block
  • Install views data export module
  • Create a data export for analytics view and attach to the block
  • Go to Structure/Block layout and place 'Google Analytics Reports Page Block'' in content region
  • View any page on the site

Proposed resolution

Error is caused due to the presense of slash(/) in the page path (Page path is used as contextual filter)

🐛 Bug report
Status

Active

Version

4.0

Component

All modules

Created by

🇮🇳India Akhil Babu Chengannur

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

Comments & Activities

Production build 0.71.5 2024