-
Notifications
You must be signed in to change notification settings - Fork 540
Description
Describe the bug
Refly generate wrong template thumbnail image url
The image src url start 'undefined', which is wrong.
The wrong URL
https://refly.example.com/canvas/undefined/share-cover/can-dx050jn7gr46amvwuge69kso.png
This URL is correct after replace the base domain to api domain
https://reflyapi.example.com/v1/misc/public/share-cover/can-dx050jn7gr46amvwuge69kso.png
log:
2025/04/02 01:37:50 [error] 8#8: *133 open() "/usr/share/nginx/html/canvas/undefined/share-cover/can-vlzquvm1prq22fbuq2rzbzi5.png" failed (2: No such file or directory), client: 10.0.1.249, server: localhost, request: "GET /canvas/undefined/share-cover/can-vlzquvm1prq22fbuq2rzbzi5.png HTTP/1.1", host: "refly.example.com"
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.