Replace Additional search views path parameters with query parameters #3864
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing user-facing feature
🟧 priority: high
Stalls work on the project or its dependents
🧱 stack: frontend
Related to the Nuxt frontend
Milestone
Problem
Additional search views on the frontend should use the query parameters instead of the path parameters.
Description
The following changes are necessary:
/pages/<mediaType>/tag/_tag.vue
and/pages/<mediaType>/source/_.vue
pages with/pages/<mediaType>/collection.vue
. The page should be similar to_tag.vue
, using thecollection
middleware. It should not be setting the collection state in thesetup
functioncollection.ts
middleware to extract the collection parameters from the route name and query parameters. It should also check that the source name is valid, and should update thesearch
store state.Additional context
Temporarily, until the API changes are added, we can use the current
full-text search
query parameters for the query:tags
for tag view,creator
andsource
for the creator and source. Theunstable__collection
parameter will be ignored by the API for now.The changes were discussed in Rethinking additional search views URLs
The text was updated successfully, but these errors were encountered: