HomeVendure CoreShow hidden breadcrumbs...ConfigurationDefaultSlugStrategyOn this pageDefaultSlugStrategy@vendure/coreSourcev3.5.0 The default strategy for generating slugs. This strategy: Converts to lowercase Replaces spaces and special characters with hyphens Removes non-alphanumeric characters (except hyphens) Removes leading and trailing hyphens Collapses multiple hyphens into one Example Tsconst strategy = new DefaultSlugStrategy();strategy.generate(ctx, { value: "Hello World!" }); // "hello-world"strategy.generate(ctx, { value: "Café Français" }); // "cafe-francais"strategy.generate(ctx, { value: "100% Natural" }); // "100-natural" Signatureclass DefaultSlugStrategy implements SlugStrategy { generate(ctx: RequestContext, params: SlugGenerateParams) => string;} Implements: SlugStrategy generatemethod(ctx: RequestContext, params: SlugGenerateParams) => stringWas this chapter helpful?It was helpfulIt wasn't helpfulReport IssuePreviousDefaultConfigNextEntityDuplicatorEdited Jan 28, 2026·Edit this page