a tool for shared writing and social publishing

add encodeURIComponent for pub name in a couple places

+4 -2
+1 -1
app/[leaflet_id]/publish/PublishPost.tsx
··· 197 <h2 className="pt-2">Published!</h2> 198 <Link 199 className="hover:!no-underline font-bold place-self-center pt-2" 200 - href={`/lish/${uri.host}/${props.record?.name}/dashboard`} 201 > 202 <ButtonPrimary>Back to Dashboard</ButtonPrimary> 203 </Link>
··· 197 <h2 className="pt-2">Published!</h2> 198 <Link 199 className="hover:!no-underline font-bold place-self-center pt-2" 200 + href={`/lish/${uri.host}/${encodeURIComponent(props.record?.name || "")}/dashboard`} 201 > 202 <ButtonPrimary>Back to Dashboard</ButtonPrimary> 203 </Link>
+3 -1
app/lish/createPub/updatePublication.ts
··· 88 .select() 89 .single(); 90 if (name !== existingPub.name) 91 - return redirect(`/lish/${aturi.host}/${name}/dashboard`); 92 93 return { success: true, publication }; 94 }
··· 88 .select() 89 .single(); 90 if (name !== existingPub.name) 91 + return redirect( 92 + `/lish/${aturi.host}/${encodeURIComponent(name)}/dashboard`, 93 + ); 94 95 return { success: true, publication }; 96 }