Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

Don't store the path prefix as global app state but derive it on a per-request basis #105

@mgoltzsche

Description

@mgoltzsche

Currently the path prefix is derived from the X-Forwarded-Prefix HTTP header of the first request only and then applied to every subsequent request (see here).
The header may be specified by a reverse-proxy that exposes the web app under a different path.

However, applying the prefix of the first request to all requests is a problem because:

  • when reconfiguring the reverse-proxy with a different prefix the change is not applied, unless the web app is restarted.
  • it does not allow using the web app with multiple path prefixes simultaneously (e.g. when letting a reverse-proxy expose it with a path prefix while still letting another client access the web app directly, bypassing the reverse-proxy).

Thus, I suggest to derive the path prefix on a per-request basis and to not store the result as global application state.

Relates to:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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