Skip to content

Conversation

@moseshll
Copy link
Contributor

@moseshll moseshll commented Jan 8, 2026

…cet is added or removed

  • Modify SearchStructure class to extract an instance variable adv from the query, to be used when crafting "remove filter" URLs
  • Modify Search/Home.php to behave similarly when crafting the "add filter" URLs.
  • Add a simple-minded Playwright test to simulate adding and removing a facet on a search URL with the adv set to 1.

…cet is added or removed

 - Modify `SearchStructure` class to extract an instance variable `adv` from the query, to be used when crafting "remove filter" URLs
 - Modify `Search/Home.php` to behave similarly when crafting the "add filter" URLs.
 - Add a simple-minded Playwright test to simulate adding and removing a facet on a search URL with the `adv` set to 1.
@moseshll moseshll requested a review from aelkiss January 8, 2026 22:00
Copy link
Member

@aelkiss aelkiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test looks good in terms of covering both cases below -- that we keep &adv=1 when adding a facet and when removing it.

Once we remove the extraneous debugging stuff this should be good to go.

Copy link
Member

@aelkiss aelkiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants