[Bug]: Attachment download links broken #856

Closed
opened 2026-02-04 21:29:43 +03:00 by OVERLORD · 2 comments
Owner

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 attachments makes 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

  1. Create card and add attachment
  2. Select attachment and press download button
  3. Get 404 page cause of incorrect link which you have to fix

Other information

No response

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 `attachments` makes 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 1. Create card and add attachment 2. Select attachment and press download button 3. Get 404 page cause of incorrect link which you have to fix ### Other information _No response_
Author
Owner

@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 of https://planka.example.com, it’s https://planka.example.com/. To fix this, just remove the trailing slash. We can also trim the BASE_URL on our side to prevent this from happening in the future.

@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 of `https://planka.example.com`, it’s `https://planka.example.com/`. To fix this, just remove the trailing slash. We can also trim the `BASE_URL` on our side to prevent this from happening in the future.
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#856