mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Fix image path problem when using filesystem backend
This commit is contained in:
parent
6587e7ccc6
commit
90c83ebd5b
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
@ -502,7 +502,7 @@ app.post('/uploadimage', function (req, res) {
|
|||
switch (config.imageUploadType) {
|
||||
case 'filesystem':
|
||||
res.send({
|
||||
link: url.resolve(config.serverurl, files.image.path.match(/^public(.+$)/)[1])
|
||||
link: url.resolve(config.serverurl + '/', files.image.path.match(/^public\/(.+$)/)[1])
|
||||
});
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue