Can't save search Original/Fan classification
complete
Mike Wasson
When searching, it's not possible to save the classification field, which determines whether looking for original works, fan works, or both. This is because the query parameter sent is "classification" (all code from SearchIndex.jsx):
const data = {
page: newPage ? 1 : page,
payment: payment,
classification: classification,
order_by: order,
search: search
}
...
getRequest('/api/v3/omnisearch/projects', data, (err, jsonData) => {
...
But data is populated with the parameter "cl" (line 251):
const [classification, setClassification] = useState(urlParams.get('cl') || 'all')
If that were changed to look for urlParams.get('classification'), it'd work without issue.
Mike Wasson
Thank you!!
Buford Taylor
complete
Buford Taylor
Thanks for the bug report. This is now fixed.