Commit 32ea6bb
authored
Switch facet suggest request to have query in URL query params, instead of path, with proper escaping (#3774)
It was failing prior on queries including `.` or `/`. It may have been possible to fix this with proper escaping and leave it in path component of URL -- but it's much more straightoforward to put it in query component after the `?`, and let existing escaping happening take care of it. This is a URL only used by JS fetch that shouldn't ordinarily be seen by the user, so aesthetics prob not a concern.
The Blacklight CI sample data has a `topic_facet` value with a period in it (`Iran. Vizārat-i Kishvar`), and my own local data does too. I haven't seen any with `/`, but of course it's possible and should work.1 parent 8c1d0e1 commit 32ea6bb
File tree
3 files changed
+14
-2
lines changed- app/javascript/blacklight-frontend
- lib/blacklight/routes
- spec/features
3 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
115 | 124 | | |
116 | 125 | | |
117 | 126 | | |
| |||
0 commit comments