Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚗️🐛 [rum-react][RUM-6226] fix for empty splats #3142

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

BenoitZugmeyer
Copy link
Member

@BenoitZugmeyer BenoitZugmeyer commented Nov 18, 2024

Motivation

When the react router route /* is matched with the / (root) path, the produced view name is /* instead of the expected /.

Changes

When matching the route /* with the path /, the * param is an empty string (obviously). In that case, we shouldn't consider the * as missing and proceed with replacing the star.

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

When matching the route `/*` with the path `/`, the '*' param is an
empty string (obviously). In that case, we shouldn't consider the '*' as
missing and proceed with replacing the star.
@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner November 18, 2024 18:10
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.54%. Comparing base (0a018d6) to head (b0bf726).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3142      +/-   ##
==========================================
- Coverage   93.71%   93.54%   -0.17%     
==========================================
  Files         279      279              
  Lines        7682     7682              
  Branches     1718     1718              
==========================================
- Hits         7199     7186      -13     
- Misses        483      496      +13     

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


🚨 Try these New Features:

@BenoitZugmeyer BenoitZugmeyer merged commit 9d5c12f into main Nov 19, 2024
19 checks passed
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/fix-empty-splats branch November 19, 2024 13:31
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