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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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