Fix session file URLs (add /api prefix) and WebGL error handling in STL viewer
Backend:
- _file_url in content_store.py now returns /api/sessions/... instead of /sessions/...
- share_file.py URL construction updated to include /api
- content_publish.py docstring updated to reflect correct endpoint

Frontend:
- contentLinks.js: avoid double /api prefix in dev mode when backend already returns it
- stl.html: replace throw err with return after showing WebGL fallback message
- Rebuild dist

Tests:
- Update expected URLs in test_content_store.py and test_share_file.py

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent fbc7cb1 commit 10a2581c03c0250bd6a136aad995e5315cbea1ae
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 16 May
Showing 8 changed files
View
navi/content_store.py
View
navi/tools/content_publish.py
View
navi/tools/share_file.py
View
tests/unit/test_content_store.py
View
tests/unit/tools/test_share_file.py
View
webclient/dist/content-viewers/stl.html
View
webclient/public/content-viewers/stl.html
View
webclient/src/utils/contentLinks.js