Skip to content

Add support for any-value and valueless query param redirect rules#2460

Merged
acelaya merged 4 commits into
shlinkio:developfrom
acelaya-forks:feature/enhanced-query-param-rules
Jul 17, 2025
Merged

Add support for any-value and valueless query param redirect rules#2460
acelaya merged 4 commits into
shlinkio:developfrom
acelaya-forks:feature/enhanced-query-param-rules

Conversation

@acelaya

@acelaya acelaya commented Jul 17, 2025

Copy link
Copy Markdown
Member

Closes #2386

This PR adds two new redirect rule conditions that expand and add more flexibility over the existing query-param condition.

  • any-value-query-param: will match as soon as the query string contains a specific parameter, regardless of its value or even if it has no value at all.
  • valueless-query-param: will match if the query string contains a specific parameter but with no value at all (for example https://example.com/?foo or https://example.com/?foo=)

@acelaya acelaya force-pushed the feature/enhanced-query-param-rules branch from 344a5e7 to 18c4c39 Compare July 17, 2025 06:31
@codecov

codecov Bot commented Jul 17, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.69%. Comparing base (f5c6bc8) to head (c3d3cc6).
Report is 6 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #2460      +/-   ##
=============================================
+ Coverage      93.68%   93.69%   +0.01%     
- Complexity      1730     1744      +14     
=============================================
  Files            279      279              
  Lines           5934     5948      +14     
=============================================
+ Hits            5559     5573      +14     
  Misses           375      375              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@acelaya acelaya marked this pull request as ready for review July 17, 2025 06:52
@acelaya acelaya merged commit 978e24d into shlinkio:develop Jul 17, 2025
23 checks passed
@acelaya acelaya deleted the feature/enhanced-query-param-rules branch July 17, 2025 06:57
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.

Allow Empty Query Parameter Values in Redirect Rules

1 participant