fix: fix URI encoding for tag filter (WEB-1)
This commit is contained in:
parent
a0fd48e6ca
commit
b04e63a8a3
@ -65,8 +65,8 @@ declare const Prism: any;
|
|||||||
let posts: BlogPost[];
|
let posts: BlogPost[];
|
||||||
|
|
||||||
const tag = getQueryVariable("tag");
|
const tag = getQueryVariable("tag");
|
||||||
if (tag !== null) {
|
if (tag !== null && tag !== "") {
|
||||||
posts = await API.getBlogPostsByTag(tag, i);
|
posts = await API.getBlogPostsByTag(decodeURIComponent(tag), i);
|
||||||
} else {
|
} else {
|
||||||
posts = await API.getBlogPosts(i);
|
posts = await API.getBlogPosts(i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user