fix: fix URI encoding for tag filter (WEB-1)

This commit is contained in:
Oliver Booth 2023-09-24 18:39:21 +01:00
parent a0fd48e6ca
commit b04e63a8a3
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5

View File

@ -65,8 +65,8 @@ declare const Prism: any;
let posts: BlogPost[];
const tag = getQueryVariable("tag");
if (tag !== null) {
posts = await API.getBlogPostsByTag(tag, i);
if (tag !== null && tag !== "") {
posts = await API.getBlogPostsByTag(decodeURIComponent(tag), i);
} else {
posts = await API.getBlogPosts(i);
}