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

Encode the URI for login coming from generative AI checkbox #315

Merged

Conversation

adamjarling
Copy link
Contributor

@adamjarling adamjarling commented Mar 7, 2024

What does this do?

When a user logins in by way of trying to select the Generative AI feature in the search bar, we want to add a query parameter which lets the app know on redirect the person was trying to use Generative AI. This way, the feature is automatically turned on for the user, instead of them having to manually re-select it.

image

We originally thought query params were getting stripped out at the DC API layer, but @mbklein pointed out we just need to call encodeURIComponent() on our newly constructed URL object's full path. 👍

@adamjarling adamjarling self-assigned this Mar 7, 2024
@adamjarling adamjarling requested a review from mbklein March 7, 2024 16:21
@adamjarling adamjarling merged commit 204a80f into preview/chat-integration Mar 7, 2024
1 check passed
@adamjarling adamjarling deleted the 4574-user-login-ai-queryparam branch March 7, 2024 16:56
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