Skip to content

Commit 2bef28a

Browse files
committed
解决了搜索时,无法转换特殊字符的bug
1 parent 399d208 commit 2bef28a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

argontheme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ function searchPosts(word){
309309
});
310310
}else{
311311
$.pjax({
312-
url: argonConfig.wp_path + "?s=" + encodeURI(word)
312+
url: argonConfig.wp_path + "?s=" + encodeURIComponent(word)
313313
});
314314
}
315315
}

0 commit comments

Comments
 (0)