Skip to content

Wrong redirection in Gitea #31544

Closed
Closed
@mirkoSekulic

Description

@mirkoSekulic

Description

When Gitea is hosted with a subUrl (e.g. on studio.localhost/repos), there seems to be a problem with redirection.

If you provide the redirect parameter as “/”, Gitea should redirect to the root (“/”). However, it currently redirects to gitea home page. Similarly, if you pass any other parameter (e.g., “/redirected”) as the redirect_to parameter, Gitea redirects to the Gitea home page rather than the specified page.
The same issue exists with the OIDC flow.

Steps to reproduce.

Detailed instructions for reproducing the bug are described in demo repo

Gitea Version

1.21.11-rootless

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

We're using self-hosted Gitea in AKS.

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions