Skip to content

Commit

Permalink
fix: decode tags from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jan 23, 2024
1 parent 998f32d commit 2af8bc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pages/posts/[domain].vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@
return []
}
return tags.split('|').map((tag) => new Tag({ name: tag }))
return tags
.split('|')
.map((tag) => decodeURIComponent(tag))
.map((tag) => new Tag({ name: tag }))
})
const selectedPage = computed(() => {
Expand Down
5 changes: 4 additions & 1 deletion pages/premium/saved-posts/[domain].vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@
return []
}
return tags.split('|').map((tag) => new Tag({ name: tag }))
return tags
.split('|')
.map((tag) => decodeURIComponent(tag))
.map((tag) => new Tag({ name: tag }))
})
const selectedPage = computed(() => {
Expand Down

0 comments on commit 2af8bc7

Please sign in to comment.