From fe3bdafb637651630ba3a53e456a3659738a297b Mon Sep 17 00:00:00 2001 From: dbroqua Date: Sat, 16 Apr 2022 17:22:58 +0200 Subject: [PATCH] Correction d'un bug sur les filtres de recherches --- views/pages/collection.ejs | 4 ++-- views/pages/mon-compte/ma-collection/index.ejs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/views/pages/collection.ejs b/views/pages/collection.ejs index a0530f7..8ba62cd 100644 --- a/views/pages/collection.ejs +++ b/views/pages/collection.ejs @@ -175,10 +175,10 @@ let url = `/api/v1/albums?userId=${this.userId}&page=${this.page}&limit=${this.limit}&sort=${this.sort}&order=${this.order}`; if ( this.artist ) { - url += `&artists_sort=${this.artist}`; + url += `&artists_sort=${this.artist.replace('&', '%26')}`; } if ( this.format ) { - url += `&format=${this.format}`; + url += `&format=${this.format.replace('&', '%26')}`; } if ( this.year ) { url += `&year=${this.year}`; diff --git a/views/pages/mon-compte/ma-collection/index.ejs b/views/pages/mon-compte/ma-collection/index.ejs index eb21c37..f8c5f2e 100644 --- a/views/pages/mon-compte/ma-collection/index.ejs +++ b/views/pages/mon-compte/ma-collection/index.ejs @@ -229,10 +229,10 @@ let url = `/api/v1/albums?page=${this.page}&limit=${this.limit}&sort=${this.sort}&order=${this.order}`; if ( this.artist ) { - url += `&artists_sort=${this.artist}`; + url += `&artists_sort=${this.artist.replace('&', '%26')}`; } if ( this.format ) { - url += `&format=${this.format}`; + url += `&format=${this.format.replace('&', '%26')}`; } if ( this.year ) { url += `&year=${this.year}`;