From cfae90c22bd47e96f3fa57bfca83f0d4bf59ee0d Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 4 Feb 2024 15:38:49 +0800 Subject: [PATCH] [fix] link url --- scripts/tags/lib/link.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tags/lib/link.js b/scripts/tags/lib/link.js index 7299b88..7788d35 100644 --- a/scripts/tags/lib/link.js +++ b/scripts/tags/lib/link.js @@ -13,9 +13,10 @@ module.exports = ctx => function(args) { if (args.url == null) { return ''; } + const url = full_url_for(args.url) args.api = ctx.theme.config.tag_plugins.linkcard.api if (args.api) { - args.api = args.api.replace('${href}', args.url) + args.api = args.api.replace('${href}', url) } var autofill = [] if (!args.title) {