mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Co-authored-by: Matt Bierner <matb@microsoft.com>
This commit is contained in:
parent
6ee883bfa3
commit
be8745ac9e
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue