Skip to content

Sharing: Incorrect link redirect when installed on a shared domain #1617

Closed
@v-bulynkin

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

Labels

bugSomething isn't workingreleasedAvailable in the stable release

Type

No type

Projects

  • Status

    Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions