mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-04-01 01:20:31 -04: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:
committed by
Karl Burtram
parent
93a28b30c7
commit
d26f4167fb
@@ -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