Can't save search Original/Fan classification

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.

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
πŸ’‘

Feature Request

Date

Over 1 year ago

Author

Mike Wasson

Subscribe to post

Get notified by email when there are changes.