{BUGFIX} Espace double quote on artists

This commit is contained in:
Damien Broqua 2024-10-07 20:23:37 +02:00
parent 8289ed7116
commit 48287f2bae
2 changed files with 6 additions and 3 deletions

View file

@ -43,7 +43,10 @@ Vue.createApp({
},
methods: {
formatParams(param) {
return param.replace("&", "%26").replace("+", "%2B");
return param
.replace("&", "%26")
.replace("+", "%2B")
.replace('"', "%22");
},
fetch() {
this.loading = true;
@ -63,7 +66,7 @@ Vue.createApp({
const [key, value] = entry;
switch (key) {
case "artists_sort":
this.artist = value;
this.artist = value.replaceAll('"', "%22");
break;
default:
if (["order", "sort"].indexOf(key) !== -1) {

View file

@ -4,7 +4,7 @@
<option value="">Tous</option>
<%
for (let i = 0; i < page.artists.length; i += 1 ) {
__append(`<option value="${page.artists[i]}">${page.artists[i]}</option>`);
__append(`<option value="${page.artists[i].replaceAll('"','%22')}">${page.artists[i]}</option>`);
}
%>
</select>