mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 11:10:48 +00:00
Co-authored-by: Matt Bierner <matb@microsoft.com>
This commit is contained in:
parent
6ee883bfa3
commit
be8745ac9e
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue