Co-authored-by: Matt Bierner <matb@microsoft.com>
This commit is contained in:
Jean Pierre
2021-05-21 16:51:18 -05:00
committed by GitHub
parent 6ee883bfa3
commit be8745ac9e

View File

@@ -428,8 +428,7 @@ class MarkdownPreview extends Disposable implements WebviewResourceProvider {
private async onDidClickPreviewLink(href: string) {
const [rawPath, fragment] = href.split('#');
let hrefPath = decodeURIComponent(rawPath);
let [hrefPath, fragment] = href.split('#').map(c => decodeURIComponent(c));
if (hrefPath[0] !== '/') {
// We perviously already resolve absolute paths.