mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 08:28:11 +00:00
update
This commit is contained in:
@@ -140,7 +140,9 @@ class WikiMarkdownViewer extends React.Component {
|
||||
let index2 = url.indexOf('?');
|
||||
imagePath = url.substring(index + 5, index2);
|
||||
} else if (/^\.\.\/*/.test(url) || /^\.\/*/.test(url)) {
|
||||
imagePath = Utils.pathNormalize(this.props.path, url);
|
||||
const path = this.props.path;
|
||||
const originalPath = path.slice(0, path.lastIndexOf('/')) + '/' + url;
|
||||
imagePath = Utils.pathNormalize(originalPath);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user