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 30a0190 commit 741dfd5Copy full SHA for 741dfd5
1 file changed
src/lib/alias.ts
@@ -218,7 +218,9 @@ function processUniqueSlugs(
218
const slugToRemainder = new Map<string, string>();
219
220
for (const slug of uniqueProjectSlugs) {
221
- const remainder = slug.slice(strippedPrefix.length);
+ const remainder = slug.startsWith(strippedPrefix)
222
+ ? slug.slice(strippedPrefix.length)
223
+ : slug;
224
slugToRemainder.set(slug, remainder || slug);
225
}
226
0 commit comments