You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the preferred-instance is stored as a cookie. This query parameter can be completely drop and the value can just be read from the cookie directly.
So on line 10 above, instead of just copying the query that was passed to /results directly, the query string will just need to be re-constructed and the preferred instance determined by what's stored in the cookie instead of what was passed in the query string.
…nstance as a query parameter. The value is read directly from the user's cookie and then passed to the /search endpoint.
This should make it easier to share search URLs and hopefully fix the nullpost bug.
Is your feature request related to a problem? Please describe.
I'd like to be able to link users to a specific query and have it use their preferred instance for the search. E.g.
https://search-lemmy.com/results?query=lemmyverse
Describe the solution you'd like
Per our discord conversation, the preferred instance is stored as a cookie.
If the cookie is missing and the above URL is used, potentially drop them on the homepage with the query already filled(?)
Describe alternatives you've considered
Prompting the user every time - Seems excessive
Defaulting to Lemmy.world - This is bad practice, even if everyone else is currently doing it
Additional context
The text was updated successfully, but these errors were encountered: