Sharing: Incorrect link redirect when installed on a shared domain #1617
Closed
Description
I have a docker container of Photoprism with
PHOTOPRISM_SITE_URL: "http://docker/photo/"
It sits behind Traefik reverse-proxy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.photoprism.rule=PathPrefix(`/photo`)"In the admin panel everything work correctly, but there is a problem with sharing links - I make a link where all seems good:
However, when I copy the link (http://docker/photo/s/2pk0fpqoyj/test) and try to open it in a browser, the link transforms to https://docker/s/2pk0fpqoyj/ar0uvkm1ei9j9uwc and I get 404 error:
If I manually add the prefix (https://docker/photo/s/2pk0fpqoyj/ar0uvkm1ei9j9uwc), it works.
Why the /photo prefix disappears and how to prevent this behaviour?
The same thing happens after exiting - it goes not to login page http://docker/photo but to the root http://docker
Metadata
Assignees
Type
Projects
Status
Release 🌈

