Making WordPress.org

Opened 2 years ago

Closed 3 weeks ago

#7790 closed defect (bug) (fixed)

"All" Filter Redirecting to Main Plugins Page Instead of Block-Enabled Plugins

Reported by: yani.iliev Owned by: obenland
Priority: normal Milestone:
Component: Plugin Directory Keywords:
Cc:

Description

On the "Block-Enabled plugins" page (​https://wordpress.org/plugins/browse/blocks/), the filters "Community" and "Commercial" work as expected. However, when the "All" filter is selected, it redirects to the main plugins page (​https://wordpress.org/plugins/) instead of showing all block-enabled plugins.

Steps to Reproduce:

  1. Go to ​https://wordpress.org/plugins/browse/blocks/.
  2. Select "Community" or "Commercial" to filter plugins.
  3. Try switching to "All" filter.

Expected Result:
The page should display all block-enabled plugins without leaving the block plugins directory.

Actual Result:
It redirects to the main plugins directory page, losing the block plugins context.

Change History (2)

#1 @marceljm3
4 weeks ago

I've submitted a pull request to fix this issue:

​https://github.com/WordPress/wordpress.org/pull/1094

The fix preserves the current browse section when selecting the "All" filter, while maintaining the existing behavior for search results and other archive pages.

Automated regression tests have been added, and all 23 GitHub checks are passing.

#2 @obenland
3 weeks ago

  • Owner set to obenland
  • Resolution → fixed
  • Status new → closed

In 15436:

Plugin Directory: Preserve browse context in All filter

Props marceljm3.
Closes ​https://github.com/WordPress/wordpress.org/pull/1094.
Fixes #7790.

Note: See TracTickets for help on using tickets.