[BUG] Share-links are no-longer embedded due to missing meta tags #1727

Closed
opened 2026-02-05 03:23:23 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @samip5 on GitHub (Dec 5, 2023).

The bug

It seems that ever since SSR being removed, the share links are missing meta tags that would let things like Discord show the image you shared directly. I want it back and as it used to work, I'm filing this as a bug.

The OS that Immich Server is running on

Kubernetes

Version of Immich Server

v1.89.0

Version of Immich Mobile App

Not relevant

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Not relevant

Your .env content

Not relevant

Reproduction steps

1. Create a public share url
2. Give it to eg https://www.opengraph.xyz or just paste into a Discord channel.
3. See that there's no image fetched.

Additional information

This really used to work and it's a good feature to have. I know that @bo0tzz knows what I'm talking about.

Originally created by @samip5 on GitHub (Dec 5, 2023). ### The bug It seems that ever since SSR being removed, the share links are missing meta tags that would let things like Discord show the image you shared directly. I want it back and as it used to work, I'm filing this as a bug. ### The OS that Immich Server is running on Kubernetes ### Version of Immich Server v1.89.0 ### Version of Immich Mobile App Not relevant ### Platform with the issue - [X] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML Not relevant ``` ### Your .env content ```Shell Not relevant ``` ### Reproduction steps ```bash 1. Create a public share url 2. Give it to eg https://www.opengraph.xyz or just paste into a Discord channel. 3. See that there's no image fetched. ``` ### Additional information This really used to work and it's a good feature to have. I know that @bo0tzz knows what I'm talking about.
OVERLORD added the 🖥️web label 2026-02-05 03:23:23 +03:00
Author
Owner

@bo0tzz commented on GitHub (Dec 5, 2023):

This broke because we moved to adapter-static and clientside-only rendering for the svelte app. I don't think there's much we can do on the svelte side there. @jrasm91 would it be an option to catch this route from the server code and detect whether the client is not a browser or such, in which case we return some placeholder html with the appropriate meta tags?

@bo0tzz commented on GitHub (Dec 5, 2023): This broke because we moved to adapter-static and clientside-only rendering for the svelte app. I don't think there's much we can do on the svelte side there. @jrasm91 would it be an option to catch this route from the server code and detect whether the client is not a browser or such, in which case we return some placeholder html with the appropriate meta tags?
Author
Owner

@jrasm91 commented on GitHub (Dec 5, 2023):

Yup, that might be possible, although probably quite complicated. Theoretically we can have a list of urls we send back dynamic html for instead of static.

@jrasm91 commented on GitHub (Dec 5, 2023): Yup, that might be possible, although probably quite complicated. Theoretically we can have a list of urls we send back dynamic html for instead of static.
Author
Owner

@bo0tzz commented on GitHub (Dec 5, 2023):

What about having the share url lead to a dynamic page that is just the meta tags and an automatic javascript redirect to the actual gallery? That way we can serve that from immich-server without too much fuss, while being mostly seamless to human users (hopefully).

@bo0tzz commented on GitHub (Dec 5, 2023): What about having the share url lead to a dynamic page that is just the meta tags and an automatic javascript redirect to the actual gallery? That way we can serve that from immich-server without too much fuss, while being mostly seamless to human users (hopefully).
Author
Owner

@jrasm91 commented on GitHub (Jan 13, 2024):

This has been fixed.

@jrasm91 commented on GitHub (Jan 13, 2024): This has been fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1727