{BUGFIX} Espace double quote on artists
This commit is contained in:
parent
8289ed7116
commit
48287f2bae
2 changed files with 6 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue