0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-21 00:52:43 -05:00
immich/web/src/routes
eleith a70cd368af
fix(server): use fqdn for og:image meta tag value (#11082)
* attempt to use fqdn for og:image

opengraph image specifies that the url contains http or https, thus
implying a fqdn.

this change uses the external domain from the server config to attempt
to make the og:image have both the existing path to the thumbnail along
with the desired domain

if the server setting is empty, the old behavior will persist

please note, some og implementations do work with relative paths, so not
all og image checkers may still pass, but not all implementations have
this fallback and thus will not find the image otherwise

* tests and ssr for og:image value as fqdn

* formatting

* fix test

* formatting

* formatting

* fix tests

getConfig was requiring authentication. using already initiated global stores instead

* load config in shared link service itself

* join host and pathname/params safely

* use origin instead of host for full domain string

also fixes lint and address the imageURL type which is optional

* chore: clean up

---------

Co-authored-by: eleith <eleith@lemon.localdomain>
Co-authored-by: eleith <online-github@eleith.com>
Co-authored-by: Jason Rasmussen <jason@rasm.me>
2024-07-29 21:38:47 +00:00
..
(user) fix(server): use fqdn for og:image meta tag value (#11082) 2024-07-29 21:38:47 +00:00
admin feat(web): more localized number formatting (#11401) 2024-07-29 10:38:27 -04:00
auth fix(web): i18n race condition in load function (#10693) 2024-06-29 11:29:56 -05:00
link feat(web): license UI (#11182) 2024-07-18 10:56:27 -05:00
+error.svelte chore(web): another missing translations (#10274) 2024-06-24 09:50:01 -04:00
+layout.svelte fix(server): use fqdn for og:image meta tag value (#11082) 2024-07-29 21:38:47 +00:00
+layout.ts feat(web): link router (#10644) 2024-06-27 09:09:28 -04:00
+page.svelte fix(web): avoid nesting buttons inside links (#11425) 2024-07-29 10:36:10 -04:00
+page.ts fix(web): i18n race condition in load function (#10693) 2024-06-29 11:29:56 -05:00