Attached images using domain name doesn't show up in ip address #769

Open
opened 2026-02-27 15:13:47 -05:00 by deekerman · 1 comment
Owner

Originally created by @yewkay on GitHub (Jan 26, 2026).

Description

When I log in using domain name eg:vik.domain.com and attach an image, anyone else using local IP 192.168.1.55 cannot see the attachment. It is the same vice versa, if a user logs in via IP address and posts an image, other users using domain name cannot see the attachment.

Steps to reproduce,

  1. log in with domain name address (vik.domain.com/tasks/88 ) , attach a file to the comments or anywhere really.
  2. log in with local IP (192.168.1.55:8800/tasks/88) the file appear as a broken image.
Image

Copying the image link to the browser address bar loads using both domain name and IP. eg: vik.domain.com/api/v1/tasks/88/attachments/18 and 192.168.1.55:8800/api/v1/tasks/88/attachments/18

Vikunja Version

0.24.6

Browser and version

Chrome Version 144.0.7559.60 (Official Build) (64-bit)

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

Image
Originally created by @yewkay on GitHub (Jan 26, 2026). ### Description When I log in using domain name eg:vik.domain.com and attach an image, anyone else using local IP 192.168.1.55 cannot see the attachment. It is the same vice versa, if a user logs in via IP address and posts an image, other users using domain name cannot see the attachment. Steps to reproduce, 1. log in with domain name address (vik.domain.com/tasks/88 ) , attach a file to the comments or anywhere really. 2. log in with local IP (192.168.1.55:8800/tasks/88) the file appear as a broken image. <img width="847" height="326" alt="Image" src="https://github.com/user-attachments/assets/885faecd-5dd9-45d2-b6c2-32fd11db2f3d" /> Copying the image link to the browser address bar loads using both domain name and IP. eg: vik.domain.com/api/v1/tasks/88/attachments/18 and 192.168.1.55:8800/api/v1/tasks/88/attachments/18 ### Vikunja Version 0.24.6 ### Browser and version Chrome Version 144.0.7559.60 (Official Build) (64-bit) ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots <img width="847" height="326" alt="Image" src="https://github.com/user-attachments/assets/bac8d22b-eaf5-48f8-9007-0a608be7de1e" />
Author
Owner

@kolaente commented on GitHub (Jan 26, 2026):

There should be something in the browser console or in the network tab. Can you check:

  1. Open the task with the attachment
  2. Open the browser dev tools
  3. Reload the page
  4. Check the network tab for a request containing "attachment"
  5. Check the console for any logs
@kolaente commented on GitHub (Jan 26, 2026): There should be something in the browser console or in the network tab. Can you check: 1. Open the task with the attachment 2. Open the browser dev tools 3. Reload the page 4. Check the network tab for a request containing "attachment" 5. Check the console for any logs
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vikunja-go-vikunja#769
No description provided.