aim
aim copied to clipboard
Img load failure when AIM_UI_BASE_PATH is changed
🐛 Bug
https://github.com/aimhubio/aim/blob/main/aim/web/configs.py#L8 Changing AIM_UI_BASE_PATH causes failure on loading imgs. loading imgs below : /static-files/static/media/experiments.d7187189.svg /static-files/static/media/runs.eaf7976b.svg returned 404 error
To reproduce
- aim up after set AIM_UI_BASE_PATH to another name (ex. aim up --base-path="1234")
- visit web-ui (ex. visit
/1234) - check web-console (there will be error-msgs with 404)
Expected behavior
There should be no failure on loading imgs
Environment
- Aim Version : 3.5
- Python version : 3.8
- pip version
- OS (e.g., Linux) : Mac
- Any other relevant information
Additional context
This is when base-url is changed
This is when base-url is set to default
this issue came from below: https://aimstack.slack.com/archives/C02V1DJV2BH/p1644914072221839
Thanks @ptaejoon for raising the issue! @Hamik25 could you please share additional context regarding this issue? Lets also explore possible approaches to fix.
The issue is related with import SVG files from CSS files during loading SVG files our CSS loader doesn't know about the base path and the base path is not included in GET request URL for these SVG files at the same time static server return 404 because it knows about the base path and serves only request under the base path.
Closing this issue as the Home page was redesigned.