diff --git a/app/[leaflet_id]/publish/PublishPost.tsx b/app/[leaflet_id]/publish/PublishPost.tsx index a160aad0..7ca8eba5 100644 --- a/app/[leaflet_id]/publish/PublishPost.tsx +++ b/app/[leaflet_id]/publish/PublishPost.tsx @@ -197,7 +197,7 @@ const PublishPostSuccess = (props: {

Published!

Back to Dashboard diff --git a/app/lish/createPub/updatePublication.ts b/app/lish/createPub/updatePublication.ts index 9836ccf1..2f255018 100644 --- a/app/lish/createPub/updatePublication.ts +++ b/app/lish/createPub/updatePublication.ts @@ -88,7 +88,9 @@ export async function updatePublication({ .select() .single(); if (name !== existingPub.name) - return redirect(`/lish/${aturi.host}/${name}/dashboard`); + return redirect( + `/lish/${aturi.host}/${encodeURIComponent(name)}/dashboard`, + ); return { success: true, publication }; }