Skip to content

[BUG] Trailing slash in docker-compose.yml will break login direct #937

Description

@SamScripting

Describe the Bug

- TINYAUTH_APPURL=https://tinyauth.domain.com

In the docker-compose, if you add a trailing slash to this url, Tinyauth will pass this to the web browser and cause a broken login link by not trimming it while passing.

IE, instead of https://tinyauth.domain.com/login..., you'll get https://tinyauth.domain.com//login...`, which causes a 404 to be returned.

I'm not savviest person with docker in general, but I somewhat assume this is not intrinsic to docker itself as opposed to Tinyauth's handling of the string.

How to Reproduce

Add a trailing slash to the TINYAUTH_APPURL variable in the docker-compose.

Expected Behavior

For trailing slashes to be trimmed when passed.

Additional Context

No response

Logs

No response

Operating System

Fedora 43

Browser

Firefox (tried chrome too)

Tinyauth Version

v5.0.0

Docker Version (if applicable)

29.5.3

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions