diff --git a/src/routes/(app)/[username]/new/+page.svelte b/src/routes/(app)/[username]/new/+page.svelte
index 49214d54..02cb80a3 100644
--- a/src/routes/(app)/[username]/new/+page.svelte
+++ b/src/routes/(app)/[username]/new/+page.svelte
@@ -47,6 +47,10 @@
function handleSubmit(e: SubmitEvent) {
page.slug = slugifiedSlug;
}
+
+ $effect(() => {
+ page.slug = slugify(page.display_name || 'untitled', { strict: true, lower: true });
+ });
@@ -57,10 +61,6 @@
-
@@ -68,10 +68,7 @@