Skip to content

Conversation

@aidankmcalister
Copy link
Member

@aidankmcalister aidankmcalister commented Jan 9, 2026

Summary by CodeRabbit

  • Bug Fixes
    • Improved input validation for URL parameter handling to prevent errors when processing empty or invalid URLs.

✏️ Tip: You can customize this high-level summary in your review settings.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

Dangerous URL check

No absolute URLs to prisma.io/docs found.
No local URLs found.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 9, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

Added input validation to the appendUtmParams function in the NavbarNavLink component. The function now includes an early return guard that prevents appending UTM parameters when either utmParams is missing or the provided URL is falsy.

Changes

Cohort / File(s) Summary
Input Validation Guard
src/theme/NavbarItem/NavbarNavLink.tsx
Added early return condition in appendUtmParams to check if utmParams or url is missing before proceeding with parameter appending logic

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes


📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 500e472 and 86f1b64.

📒 Files selected for processing (1)
  • src/theme/NavbarItem/NavbarNavLink.tsx

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

Redirect check

This PR probably requires the following redirects to be added to static/_redirects:

  • This PR does not change any pages in a way that would require a redirect.

@aidankmcalister aidankmcalister merged commit 06f1188 into main Jan 9, 2026
4 of 6 checks passed
@aidankmcalister aidankmcalister deleted the DR-6793-utm-param-error-fix branch January 9, 2026 14:59
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