Block visibility logic not accurate.

Set block visibility to:
1. Restricted to certain pages
2. Hide for the listed pages
3. Enter "/*/*" as the pattern in the "Pages" text field.

It should show the block on homepage and secondary level pages.
Except hide the Block on greater than 2nd level pages (3rd, 4th, 5th, etc.).

Instead it hides it on every page except the homepage. This logic seems off to me.

Thanks!

btw -This is a Bug or a Feature Request, not a Support Request, don't tell me to just type type in a hundred urls instead.

Comments

joelhsmith created an issue. See original summary.

joelhsmith’s picture

Title: Blocks "Hide for the listed pages" » Blocks "Hide for the listed pages" logic inaccurate

Version: 8.3.6 » 8.3.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.3.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

pameeela’s picture

Status: Active » Closed (works as designed)
Issue tags: +Bug Smash Initiative

You can't use the pattern /*/* - this implies a folder structure that doesn't exist. Wildcards only work for specific paths, e.g. /node/* or /search/*. So to achieve what you are after you would need to add a separate wildcard pattern for each of your second level pages.

pameeela’s picture

After discussing it in Slack I think this could be a feature request, if it isn't already, to support open wildcards. But it's definitely not supported now, so it's not a bug.