From 33723b13f972e4a1f2efaa731177a1fb5659b8a4 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 27 Nov 2019 12:12:09 +0800 Subject: [PATCH] Allow decoding post link --- scripts/helpers/next-url.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/helpers/next-url.js b/scripts/helpers/next-url.js index d7e672b5f9..5b8f8f0fe9 100644 --- a/scripts/helpers/next-url.js +++ b/scripts/helpers/next-url.js @@ -27,6 +27,7 @@ hexo.extend.helper.register('next_url', function(path, text, options = {}) { } for (let key in options) { + /** * If option have `class` attribute, add it to * 'exturl' class if `exturl` option enabled. @@ -56,5 +57,5 @@ hexo.extend.helper.register('next_url', function(path, text, options = {}) { } } - return htmlTag(tag, attrs, text, false); + return htmlTag(tag, attrs, decodeURI(text), false); });