When clicking on community name or author name in the search results, for a community or author that belongs to an instance that isn't the user's preferred instance, the link is currently incorrect as no data about what instance that community belongs to is passed to the client.
the SearchCommunity and SearchAuthor structs just need to be updated to include the actual instance that they belong to and then the results page needs to link to those correctly.
Then the UI needs to be updated to compare the owning instance to the user's preferred instance.
if they match the link should be formatted such as:
https://<preferred-instance>/c/<community-name>
if they don't match the link should be formatted such as:
https://<preferred-instance>/c/!<community-name>@<owning-instance>
(the same is true for authors but use /u/ instead of /c/).
When clicking on community name or author name in the search results, for a community or author that belongs to an instance that isn't the user's preferred instance, the link is currently incorrect as no data about what instance that community belongs to is passed to the client.
the SearchCommunity and SearchAuthor structs just need to be updated to include the actual instance that they belong to and then the results page needs to link to those correctly.
Then the UI needs to be updated to compare the owning instance to the user's preferred instance.
https://<preferred-instance>/c/<community-name>
https://<preferred-instance>/c/!<community-name>@<owning-instance>
(the same is true for authors but use/u/
instead of/c/
).