Skip to content

php artisan bookstack:update-url breaks paths due to omitting a "/" #5963

@msrv

Description

@msrv

Describe the Bug

Hi all,
i've maybe discovered a bug. I just migrated my self hosted installation at home (http://IP-Adress, no URL) to a VPS (https://url.example.com).

Everything gets restored, but the image paths are broken because the php artisan command restores the paths from:

http://192.168.2.224/uploads/images/gallery/2025-10/**RAMDOM-STRING**-example.png
to:
https://bookstack.example.comuploads/images/gallery/2025-10/**RAMDOM-STRING**-example.png

Note the missing "/" between the url and uploads.

Things i tried:

restored again, updated url again - no effect.

How can i fix this? Maybe someone has an idea?

Thank you very much :)

Edit:

If i enter the "/", e.g. https://bookstack.example.com**/**uploads/images/gallery/2025-10/**RAMDOM-STRING**-example.png, the image loads correctly.

Edit2:
Fixed it by updating the tables in bookstack database.

Steps to Reproduce

  1. create Bookstack install with ip adress as base url instead of a fqdn
  2. migrate to a new server with fqdn
  3. restore data
  4. paths are broken

Expected Behaviour

paths migrated correctly

Screenshots or Additional Context

No response

Browser Details

Brave latest, Macos latest (26)

Exact BookStack Version

BookStack v25.12, Ubuntu 24.04.03

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions