We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d0ef7d commit 03f647cCopy full SHA for 03f647c
1 file changed
website/src/pages/edit.page.tsx
@@ -105,7 +105,9 @@ const NewPage = () => {
105
const validatePath = (path: string): string | null => {
106
const formatted = formatPath(path)
107
const pathSegments = formatted.split("/").filter(Boolean) // Remove empty strings
108
-
+ if (path.trim().length == 0 || path == "/new-page") {
109
+ return `Please provide a meaningful path.`
110
+ }
111
// Check if any segment contains a disallowed word
112
for (const segment of pathSegments) {
113
for (const disallowed of DISALLOWED_WORDS) {
0 commit comments