From 82fa9f58b269d039548771de7f7a57f2091a64af Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 4 Jun 2023 20:50:29 +0800 Subject: [PATCH] :bug: The hyperlink in the marketplace package README fails to jump to the browser to open Fix https://github.com/siyuan-note/siyuan/issues/8452 --- kernel/bazaar/package.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/bazaar/package.go b/kernel/bazaar/package.go index 45a41535e..cb9d2dc89 100644 --- a/kernel/bazaar/package.go +++ b/kernel/bazaar/package.go @@ -524,8 +524,7 @@ func renderREADME(repoURL string, mdData []byte) (ret string, err error) { } doc.Find("a").Each(func(i int, selection *goquery.Selection) { - href, ok := selection.Attr("href") - if ok { + if href, ok := selection.Attr("href"); ok { if util.IsRelativePath(href) { selection.SetAttr("href", linkBase+href) }