mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix for relative links not being resolved in notebook outputs (#7966)
* Fix for relative links not being resolved * Add comment
This commit is contained in:
@@ -190,7 +190,9 @@ export class NotebookMarkdownRenderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
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;
|
return href;
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user