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[];
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user