BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.46k stars 1.94k forks source link

Create relative (not absolute) URLs in image linking and wiki type internal linking #5141

Closed kdamianakis closed 4 months ago

kdamianakis commented 4 months ago

Describe the feature you'd like

At the moment both images and internal links are described by a full domain name URL - this is potentially problematic if the domain of the bookstack deployment changes as there is no easy way (unless changing things in the database) to update all of the relative links.

Describe the benefits this would bring to existing BookStack users

Assist considerably in changing the fully qualified domain name of the installaiton, which some times needs to happen when changing servers or when the domain name no longer describes correctly the new state of the bookstack entries.

Can the goal of this request already be achieved via other means?

The database can be manually altered but that requires scripts that may miss data dependencies.

Have you searched for an existing open/closed issue?

How long have you been using BookStack?

1 to 5 years

Additional context

No response

ssddanbrown commented 4 months ago

Thanks for raising @kdamianakis, but I'm closing this off as a duplicate of existing issues #1137 and #1342.

Assist considerably in changing the fully qualified domain name of the installaiton, which some times needs to happen when changing servers or when the domain name no longer describes correctly the new state of the bookstack entries.

We specifically cater for this scenario with the "Update System URL" command detailed here: https://www.bookstackapp.com/docs/admin/commands/#update-system-url This will update all references in table columns where URLs may exist.