When you create a view display block, there is no URL associated to it.

When the ViewsBlockFilterBlockPluginDisplayBlock class gets a form action URL for the exposed_form it tries the getLinkDisplay() function in core Views (https://api.drupal.org/api/drupal/core%21modules%21views%21src%21Plugin%...).

However if you have any displays in the same view which are pages, it will get the URL from the first one of these instead (which will often be incorrect).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jeffdavidgordon created an issue. See original summary.

jeffdavidgordon’s picture

This patch will replace the linkDisplay function in DisplayPluginBase so that NULL is returned when using a view display that has no URL defined (i.e block display).

mortona2k’s picture

Status: Active » Needs review

This patch solved the issue and looks clean to me.

mortona2k’s picture

Status: Needs review » Reviewed & tested by the community
yogeshmpawar’s picture

Assigned: Unassigned » yogeshmpawar

Reviewing the patch.

yogeshmpawar’s picture

Assigned: yogeshmpawar » Unassigned
Status: Reviewed & tested by the community » Fixed

Committed & Pushed to 8.x-1.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rajab natshah’s picture

Thanks for committing this fixed issue.

8.x-1.0 was released 30 November 2019
But this issue was committed January 13, 2020
Almost 2 years

Hoping that a new release tag will have this issue into the tag.

Thanks for having time to maintain this module.

yogeshmpawar’s picture

Thanks @Rajab Natshah for pointing out. I have added new release 8.x-1.1 now & ready for use - https://www.drupal.org/project/views_block_filter_block/releases/8.x-1.1

rajab natshah’s picture

Thank you, Yogesh
Appreciate your time :)

klelostec made their first commit to this issue’s fork.

pdcarto’s picture

This change causes white screens as reported here: https://www.drupal.org/project/views_block_filter_block/issues/3270164. And the solution proposed is to revert this change, as in this patch: https://www.drupal.org/files/issues/2022-06-13/views_block_filter_block-...