Skip to content

[bug] Preserve search and Ask URLs through login redirects #1649

Description

@brianphillips

Describe the bug

When an unauthenticated user is redirected to login from a search or Ask/chat page, the original URL is not consistently preserved.

The user may be redirected to / after signing in, or query parameters may be dropped because some login links preserve only the pathname.

Expected behavior: after successful authentication, the user should return to the exact original path and query string.

To reproduce

  1. Disable anonymous access.
  2. Sign out or open an incognito window.
  3. Open a URL such as /search?query=authentication.
  4. Complete login using credentials, SSO, or a magic link.
  5. Observe the destination after authentication.

Actual result: the user lands at /, or the original search/chat query parameters are missing.

Expected result: the user returns to /search?query=authentication or the corresponding Ask/chat URL unchanged.

Sourcebot deployment information

Sourcebot version v5.1.10

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions