Commit 6d8b276
authored
BUGFIX: Artist page doesn't decode URL fields (#18)
* BUGFIX: Artist page doesn't decode URL fields
The frontend url-encodes ID3 tags to safely use them in URLs.
So the artist page for "The Beatles" is `/web/artist/The%20Beatles`.
For encoded fields with non-trivial characters (comma, ampersand),
the browser or url router won't automatically decode those values.
So `Emerson, Lake & Palmer` (`Emerson%2C%20Lake%20%26%20Palmer`)
ended up as `Emerson%2C Lake %26 Palmer` in the frontend memory,
which will match with nothing when searched for in MPD.
The fix is to include a decode step in the render step of the
Artist page so that it queries the MPD backend with the correct
value.
* spaces
* whoops1 parent 6c7cbcc commit 6d8b276
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments