Redirect to /robots.txt after login #8783

Closed
opened 2025-11-02 08:17:44 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @yottapanda on GitHub (Apr 3, 2022).

Description

Whenever I click login, I get redirected to /robots.txt (e.g. https://git.example.com/robots.txt). I do get successfully logged in though.

  • My setup is Internet -> Traefik -> Gitea
  • Issue occurs with any method of authentication

Gitea Version

1.16.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/thechubbypanda/258aaeacde287648489603e39ff935d9

Screenshots

No response

Git Version

2.30.2

Operating System

ArchLinux

How are you running Gitea?

Docker image: gitea/gitea:latest

Database

PostgreSQL

Originally created by @yottapanda on GitHub (Apr 3, 2022). ### Description Whenever I click login, I get redirected to `/robots.txt` (e.g. `https://git.example.com/robots.txt`). I do get successfully logged in though. - My setup is `Internet -> Traefik -> Gitea` - Issue occurs with any method of authentication ### Gitea Version 1.16.5 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist https://gist.github.com/thechubbypanda/258aaeacde287648489603e39ff935d9 ### Screenshots _No response_ ### Git Version 2.30.2 ### Operating System ArchLinux ### How are you running Gitea? Docker image: `gitea/gitea:latest` ### Database PostgreSQL
GiteaMirror added the issue/needs-feedback label 2025-11-02 08:17:45 -06:00
Author
Owner

@zeripath commented on GitHub (Apr 3, 2022):

Delete your redirect_to cookie.

I suspect you have an old cookie that has not been deleted.

@zeripath commented on GitHub (Apr 3, 2022): Delete your `redirect_to` cookie. I suspect you have an old cookie that has not been deleted.
Author
Owner

@yottapanda commented on GitHub (Apr 4, 2022):

Didn't have that cookie. Tried deleting all of them anyway. Issue still occurs :/

@yottapanda commented on GitHub (Apr 4, 2022): Didn't have that cookie. Tried deleting all of them anyway. Issue still occurs :/
Author
Owner

@wxiaoguang commented on GitHub (Apr 16, 2022):

There is no such redirection inside Gitea. Please check your environment config.

Feel free to reopen if you get new clues.

@wxiaoguang commented on GitHub (Apr 16, 2022): There is no such redirection inside Gitea. Please check your environment config. Feel free to reopen if you get new clues.
Author
Owner

@yottapanda commented on GitHub (Apr 24, 2022):

Found the issue, my browser did have some remaining data but it was for the root domain example.com as opposed to git.example.com.

Clearing that stopped the redirect 🤷‍♂️

@yottapanda commented on GitHub (Apr 24, 2022): Found the issue, my browser did have some remaining data but it was for the root domain `example.com` as opposed to `git.example.com`. Clearing that stopped the redirect :man_shrugging:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8783