Awesome-Technologies / synapse-admin

Admin console for synapse Matrix homeserver
https://awesome-technologies.github.io/synapse-admin/
Apache License 2.0
823 stars 124 forks source link

Wrong paths in index.html when using reverse proxy #517

Closed kroonstaar closed 5 months ago

kroonstaar commented 5 months ago

Since yesterday's commit (f4ea63c) the index.html is broken when served on a different path than / (using the provided traefik example).

The /src/index.jsx (/assets/index-XXXXX.js after building) is referenced using an absolute path instead of being relative, like other files, e.g. the favicon and the manifest.

krassle commented 5 months ago

Same here after 0.10.0 upgrade (docker with mdad). A spinning circle is shown on the logging screen trying to load /assets/***.js instead of /synapse-admin/assets/***.

Keeberos commented 5 months ago

I confirm that this is exactly what happens when upgrading to 0.10.0

awesome-manuel commented 5 months ago

Duplicate of #512

kroonstaar commented 5 months ago

Noted. Could you add an option to change the base path via docker build arguments to the Dockerfile (i.e. yarn build --base=$BASE_PATH) as we had with homeserver restrictions before?