We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e0f64e commit 157729fCopy full SHA for 157729f
src/format/slug.ts
@@ -97,8 +97,10 @@ export function make_session_slug_processor({
97
const slug = processor(url, { separator });
98
let count;
99
if ((count = seen_slugs.get(slug))) {
100
- seen_slugs.set(slug, count + 1);
101
- return `${slug}${separator}${count}`;
+ throw new Error(
+ `Found duplicate slug: "${slug}" when slugifying: "${url}".
102
+Duplicate slugs are not allowed. You need to take yourself outside and have a word with yourself.`
103
+ );
104
} else {
105
seen_slugs.set(slug, 1);
106
return slug;
0 commit comments