nextcloud / photos

📸 Your memories under your control
GNU Affero General Public License v3.0
585 stars 62 forks source link

Maps Link seems to be incorrectly generated when nextcloud resides at my.domain/subdirectory #1640

Open darkmattercoder opened 1 year ago

darkmattercoder commented 1 year ago

Describe the bug When clicking on Maps from the photo app, the address is rewritten to https://my.domain/apps/maps where it should be https://my.domain/nextcloud/apps/maps

To Reproduce Steps to reproduce the behavior:

  1. Setup nextcloud to reside at a subdirectory of domain
  2. Go to Photos
  3. Click on Maps
  4. See being redirected to a location without subdirectory appended

Expected behavior Correct redirect

Additional context

'overwritewebroot' => '/nextcloud',

joshtrichards commented 1 year ago

The URL is generated using generateUrl correctly:

https://github.com/nextcloud/photos/blob/d7da7987ebe0ff2b3bb12ee420d2c632c4da0e91/src/router/index.js#L53

Can you provide the output of occ config:list system from your system? Of particular interest be the apps_paths section with any url parameters.

darkmattercoder commented 1 year ago

Below is the output of occ config:list system

{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwritewebroot": "\/nextcloud",
        "trusted_domains": [
            "192.168.178.99",
            "home.mydomain.net"
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "26.0.1.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "theme": "",
        "log_type": "file",
        "logtimezone": "Europe\/Berlin",
        "logfile": "\/data\/nextcloud.log",
        "loglevel": 3,
        "auth.bruteforce.protection.enabled": false,
        "overwrite.cli.url": "https:\/\/home.mydomain.net\/nextcloud",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "default_phone_region": "DE",
        "app_install_overwrite": [
            "calendar"
        ],
        "trashbin_retention_obligation": "auto, 365",
        "preview_max_x": 512,
        "preview_max_y": 512
    }
}
darkmattercoder commented 6 months ago

It's been a while. Some updates happened and since the issue persists as always, here is my current configuration, in case it shows anything new which was relevant in that matter:

{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/my.domain.xyz\/nextcloud",
        "overwriteprotocol": "https",
        "overwritewebroot": "\/nextcloud",
        "trusted_domains": [
            "my.domain.xyz"
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.0.19",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "theme": "",
        "log_type": "file",
        "logtimezone": "Europe\/Berlin",
        "logfile": "\/pathtolog\/nextcloud.log",
        "loglevel": 2,
        "auth.bruteforce.protection.enabled": false,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "default_phone_region": "DE",
        "app_install_overwrite": [
            "calendar"
        ],
        "trashbin_retention_obligation": "auto, 365",
        "preview_max_x": 512,
        "preview_max_y": 512,
        "filelocking.enabled": "true",
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "upgrade.disable-web": true,
        "maintenance_window_start": 20,
        "memories.exiftool": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-musl",
        "memories.vod.path": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "memories.db.triggers.fcu": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\Image",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\Movie"
        ],
        "memories.gis_type": 1
    }
}