Skip to content

fix(pronto): forward all query parameters - #1847

Merged
oliverlaz merged 1 commit into
mainfrom
forward-all-params
Jul 7, 2025
Merged

fix(pronto): forward all query parameters#1847
oliverlaz merged 1 commit into
mainfrom
forward-all-params

Conversation

@oliverlaz

Copy link
Copy Markdown
Member

💡 Overview

Forwards all provided query params to the target route after performing a log-in.

🎫 Ticket: https://linear.app/stream/issue/REACT-445/video-pronto-app-does-not-forward-all-query-params-on-login

@oliverlaz oliverlaz changed the title fix: forward all query parameters fix(pronto): forward all query parameters Jul 7, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Updates the sign-in redirect to properly encode the incoming request URL, ensuring all query parameters are preserved post-login.

  • Encodes callbackUrl with encodeURIComponent
  • Adds fallback for empty URL string
Comments suppressed due to low confidence (2)

sample-apps/react/react-dogfood/lib/getServerSideCredentialsProps.ts:28

  • Consider adding a unit or integration test to confirm that query parameters are correctly encoded and forwarded in the redirect.
        destination: `/auth/signin?callbackUrl=${encodeURIComponent(url || '')}`,

sample-apps/react/react-dogfood/lib/getServerSideCredentialsProps.ts:28

  • [nitpick] Include a brief comment explaining why encodeURIComponent is used here to preserve the full query string during redirects.
        destination: `/auth/signin?callbackUrl=${encodeURIComponent(url || '')}`,

@oliverlaz
oliverlaz merged commit 985084f into main Jul 7, 2025
11 checks passed
@oliverlaz
oliverlaz deleted the forward-all-params branch July 7, 2025 14:44
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.

2 participants