Skip to content

Commit

Permalink
fix(quote): block link not working
Browse files Browse the repository at this point in the history
  • Loading branch information
sawhney17 committed Jan 19, 2023
1 parent b6c3477 commit 3270935
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/banners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,10 @@ const getRandomQuote = async () => {

const blockId = randomQuoteBlock[1];
const pageURL = encodeURI(`logseq://graph/${currentGraph?.name}?block-id=${blockId}`);
quoteHTML = `<a href=${pageURL}" id="banner-widgets-quote-link">${quoteHTML}</a>`;
console.log("Some things are here")
console.log(`logseq://graph/${currentGraph?.name}?block-id=${blockId}`)
console.log(pageURL)
quoteHTML = `<a href=${pageURL} id="banner-widgets-quote-link">${quoteHTML}</a>`;
return quoteHTML;
}

Expand Down

0 comments on commit 3270935

Please sign in to comment.