mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2025-01-03 11:20:07 -05:00
URL encode categories #41
This commit is contained in:
parent
34f9320889
commit
034958a8b7
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ export default {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="bg-ctp-crust w-40 lg:w-[11rem] md:w-[13.5rem] rounded-lg">
|
<div class="bg-ctp-crust w-40 lg:w-[11rem] md:w-[13.5rem] rounded-lg">
|
||||||
<router-link :to="`/directory/game/${category.name}`">
|
<router-link :to="`/directory/game/${encodeURIComponent(category.name)}`">
|
||||||
<img :src="category.image" class="rounded-lg rounded-b-none w-full" />
|
<img :src="category.image" class="rounded-lg rounded-b-none w-full" />
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
await getEndpoint('api/discover/' + this.$route.params.game)
|
await getEndpoint('api/discover/' + encodeURIComponent(this.$route.params.game))
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.status = 'error'
|
this.status = 'error'
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue