Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

[bug] Preserve search and Ask URLs through login redirects

Aberta
#1,649 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@brianphillips já está trabalhando nisso.

Desde 11/9/2026.

  • #1650 de @brianphillips — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
57/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript

Direção de pesquisa

No files or tests are named. Reproduce the redirect from /search?query=authentication and an Ask/chat URL, then trace the login links and post-authentication redirect handling; done means credentials, SSO, and magic-link flows preserve the exact path and query string.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug triage needed
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

Linguagem predominante
TypeScript
Estrelas
3.9k
Forks
374
Merge médio
2d 21h
PRs com merge (30d)
43

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de sourcebot-dev/sourcebot

Todas as issues de sourcebot-dev/sourcebot

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.