mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 21:30:39 +00:00
fix code bug (#6071)
This commit is contained in:
@@ -268,7 +268,11 @@ class Wiki extends Component {
|
||||
};
|
||||
|
||||
onLinkClick = (link) => {
|
||||
const url = link;
|
||||
let url = link;
|
||||
if (Utils.isRelativePath(url)) {
|
||||
url = window.location.href.replace('home.md', '');
|
||||
url = url + link;
|
||||
}
|
||||
if (Utils.isWikiInternalMarkdownLink(url, slug)) {
|
||||
let path = Utils.getPathFromWikiInternalMarkdownLink(url, slug);
|
||||
this.showFile(path);
|
||||
|
Reference in New Issue
Block a user