Skip to content

[BUG] Redirect issue #1021

Description

@mmolitor87

Describe the Bug

I have tinyauth configured on tinyauth.domain.com. I use it to protect domain.com, which correctly redirects to tinyauth, but then successful authentication leads to tinyauth.domain.com instead of the root domain. This does not happen with any subdomains.

Happens since 5.1.0 and still on 5.1.1, but not on 5.0.7.

I believe it may be redirected to #937

How to Reproduce

  1. Put tinyauth in front of root domain
  2. Go to domain.com
  3. Sign into tinyauth
  4. Get redirected to tinyauth.domain.com/logout

Expected Behavior

Get redirected back to root domain.

Additional Context

No response

Logs

No response

Operating System

Windows and MacOS

Browser

Chrome, Firefox and Safari

Tinyauth Version

5.1.0 / 5.1.1

Docker Version (if applicable)

No response

Human Written Confirmation

  • I confirm this issue was written by me and not generated by an LLM or AI assistant.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions