Skip to content
This repository was archived by the owner on Aug 10, 2023. It is now read-only.
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

Serving at a subpath is difficult due to a hardcoded base url #510

Open
@spantaleev

Description

@spantaleev

Due to

<base href="/">

.. serving at a different subpath (e.g. DOMAIN/dimension/) means that the index page loads, but all resources are attempted to be loaded from the wrong place (DOMAIN/asset instead of DOMAIN/dimension/asset). To fix it up, one would need to override the base url.

For nginx, one could possibly use a sub_filter, but other reverse-proxies (e.g. Traefik) do not currently have an integrated middleware for arbitrary text replacements.


I suppose the easiest solution would be to make the docker entrypoint read some environment variable (e.g. BASE_URL) and then do a sed-replace in web/index.html before starting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions