Skip to content

LANDING_PAGE=login leads to endless redirects if you're logged in #28231

Closed
@plashenkov

Description

@plashenkov

Description

Hi!

When you use LANDING_PAGE = login, you get endless redirects of /user/login page if you're logged in. The /user/login page always makes endless redirects, whereas the home (/) page does this as well, but from time to time (probably this is session-related or something like that).

Regarding home page: it works OK usually, but if you do not use Gitea for some time (not so much, you're still logged in), it will trigger endless redirects until you open the home page again.

Additional info:

Gitea versions: 1.21.0, 1.21.1

I'm using Gitea behind Caddy with the simplest configuration:

code.plashenkov.com {
  tls [email protected]
  reverse_proxy gitea:3000
}

Gitea Version

1.21.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

I'm running Gitea from Docker: gitea/gitea:1.21.1

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions