Open jelle82 opened 5 years ago
That would be very helpfull!
This would be nice but will make the logic more complex. Was a while ago but I think i decided to use full paths since we'd have to handle full paths anyway for external storage systems (S3). Easier to standardise on one format.
Would it make sense in that case to have a "base domain" field in the Settings page? I believe Wordpress has a similar approach.
@andreicocari Yeah, Although we essentially already have this via APP_URL
in the .env
file.
+1 for this!
+1 for this, it's needed for environments where the internal and external URLs are different.
+1 too ^^ I face the same issue using a temporary url to create content and modifying the url when staging to production environment with final url, all the images are not displayed any more, they are referring to the old url in use when uploaded.
+1 Have the same issue after migrating to another domain.
any update on this issues?
Make the paths to locally stored images relative instead of absolute. For example
<img src="/uploads/images/gallery/cat.png" />
instead of<img src="http://bookstack.example.com/uploads/images/gallery/cat.png" />
,It increases portability. f you want to change the domain name for the Bookstack App there is no need to change all the image urls afterwards.