template url generated error
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 729
- PR merge metrics
- No merged PRs in 30d
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the code that generates the template thumbnail or share-cover image URL, then compare its output with the incorrect URL and the API URL shown in the issue. Reproduce the request using the provided paths and confirm that the generated URL uses the API endpoint without an undefined segment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100