mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 12:40:19 -05:00
Co-authored-by: Matt Bierner <matb@microsoft.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user