diff --git a/fe_calckey/frontend/client/src/scripts/search.ts b/fe_calckey/frontend/client/src/scripts/search.ts index e59e0e9..04dc570 100644 --- a/fe_calckey/frontend/client/src/scripts/search.ts +++ b/fe_calckey/frontend/client/src/scripts/search.ts @@ -53,7 +53,11 @@ export async function search() { const res = await promise; if (res.type === "User") { - mainRouter.push(`/@${res.object.username}@${res.object.host}`); + mainRouter.push( + `/@${res.object.username}` + res.object.host + ? `@${res.object.host}` + : "" + ); } else if (res.type === "Note") { mainRouter.push(`/notes/${res.object.id}`); }