diff --git a/src/sql/workbench/parts/notebook/browser/outputs/notebookMarkdown.ts b/src/sql/workbench/parts/notebook/browser/outputs/notebookMarkdown.ts index 77fb3be910..14d65a1647 100644 --- a/src/sql/workbench/parts/notebook/browser/outputs/notebookMarkdown.ts +++ b/src/sql/workbench/parts/notebook/browser/outputs/notebookMarkdown.ts @@ -190,7 +190,9 @@ export class NotebookMarkdownRenderer { } } try { - if (URI.parse(href)) { + // The call to resolveUrl() (where relative hrefs are converted to absolute ones) comes after this point + // Therefore, we only want to return immediately if the path is absolute here + if (URI.parse(href) && path.isAbsolute(href)) { return href; } } catch {