Skip to content

Commit

Permalink
Fix profile redirect URL (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbaessler committed Nov 11, 2023
1 parent 2394dd5 commit 6986287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/u/[namespace]/[localname]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default async function ProfilePage({ params, searchParams }: ProfilePageP
const favoriteApp = await findFavoriteApp({ platform });

if (favoriteApp) {
redirectTo(favoriteApp, fullHandle);
redirectTo(favoriteApp, params.localname);
}

if (!profile) notFound();
Expand All @@ -48,7 +48,7 @@ export default async function ProfilePage({ params, searchParams }: ProfilePageP

return (
<form action={openWith}>
<input type="hidden" name="handle" value={profile.handle.fullHandle} />
<input type="hidden" name="handle" value={profile.handle.localName} />

<AppsList attribution={attribution} options={options} />
</form>
Expand Down

0 comments on commit 6986287

Please sign in to comment.