mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
[Bug]: Attachment download links broken #856
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @profole on GitHub (Nov 5, 2025).
Where is the problem occurring?
I encountered the problem while using the application (Frontend)
What browsers are you seeing the problem on?
Firefox
Current behavior
Selecting an attachment and downloading it provides an incorrect link:
http://example.net//attachments/[Some Number which I dont if its private or not]/download/06-01.pdf.This errors out into a 404 page.
Removing a slash before
attachmentsmakes the link work correctly:http://example.net/attachments/[Some Number which I dont if its private or not]/download/06-01.pdf.Desired behavior
Immediately get redirected to the attachment instead of a 404 page
Steps to reproduce
Other information
No response
@meltyshev commented on GitHub (Nov 7, 2025):
Hey! I think the problem might be that you have a slash at the end of your
BASE_URL. For example, instead ofhttps://planka.example.com, it’shttps://planka.example.com/. To fix this, just remove the trailing slash. We can also trim theBASE_URLon our side to prevent this from happening in the future.@profole commented on GitHub (Nov 7, 2025):
Removing the slash appears to have fixed it and also the preview works now. Thank you!
It does appear to be a user error, but I'd suggest automatically trimming it as you suggested considering this appears to be a very easy thing to accidentally do without knowing.