tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
add encodeURIComponent for pub name in a couple places
schlage.town
6 months ago
4442d76b
121c0e43
+4
-2
2 changed files
expand all
collapse all
unified
split
app
[leaflet_id]
publish
PublishPost.tsx
lish
createPub
updatePublication.ts
+1
-1
app/[leaflet_id]/publish/PublishPost.tsx
···
197
197
<h2 className="pt-2">Published!</h2>
198
198
<Link
199
199
className="hover:!no-underline font-bold place-self-center pt-2"
200
200
-
href={`/lish/${uri.host}/${props.record?.name}/dashboard`}
200
200
+
href={`/lish/${uri.host}/${encodeURIComponent(props.record?.name || "")}/dashboard`}
201
201
>
202
202
<ButtonPrimary>Back to Dashboard</ButtonPrimary>
203
203
</Link>
+3
-1
app/lish/createPub/updatePublication.ts
···
88
88
.select()
89
89
.single();
90
90
if (name !== existingPub.name)
91
91
-
return redirect(`/lish/${aturi.host}/${name}/dashboard`);
91
91
+
return redirect(
92
92
+
`/lish/${aturi.host}/${encodeURIComponent(name)}/dashboard`,
93
93
+
);
92
94
93
95
return { success: true, publication };
94
96
}