Slug (URL Slug)

Business Terms · Updated 2026-02-06

A slug is a URL-friendly identifier derived from a company or brand name, used in BevAlc Intelligence web addresses to create clean, readable, and SEO-optimized links to company and brand profile pages.

In Plain English

A slug is the part of a web address that identifies a specific page using a clean, readable format. In BevAlc Intelligence, every company and brand gets a unique slug based on its name. For example, a company called "Buffalo Trace Distillery" would get the slug "buffalo-trace-distillery" and its profile page would be at bevalcintel.com/company/buffalo-trace-distillery. Slugs are created by converting the name to lowercase, replacing spaces with hyphens, and removing special characters. This makes URLs that are easy to read, share, and bookmark, and that perform well in search engines. Every company page and brand page in BevAlc Intelligence uses slug-based URLs.

Technical Detail

Slugs in BevAlc Intelligence are stored in the companies table (slug column) and used as URL path segments for SSR company and brand pages. The slug generation algorithm: converts to lowercase, replaces spaces and special characters with hyphens, removes consecutive hyphens, and trims leading/trailing hyphens. Slug uniqueness is enforced at the database level. When company normalization creates a new company record, the slug is auto-generated from the canonical name. The slug serves as a stable, human-readable identifier that remains consistent even if the display name is later refined. Routes like /company/:slug and /brand/:slug use the slug to query D1 for the corresponding records and generate SSR pages with proper canonical URLs, meta tags, and structured data.

Why It Matters

Slugs are the backbone of BevAlc Intelligence's programmatic SEO strategy. Clean, keyword-rich URLs improve search engine rankings and click-through rates from search results. For users sharing links to specific companies or brands, slug-based URLs are more meaningful than numeric IDs. The slug system enables BevAlc Intelligence to generate thousands of indexable, shareable company and brand profile pages.

Related Terms

Frequently Asked Questions

Can slugs change?

Slugs are designed to be stable identifiers. Changing a slug would break existing links and bookmarks. In rare cases where a slug needs to be updated (for example, if the company name was significantly wrong), redirects should be put in place from the old slug to the new one.

What happens if two companies would generate the same slug?

The system ensures slug uniqueness. If a generated slug conflicts with an existing one, a numeric suffix or other disambiguator is added. This is rare because company names that differ generate different slugs.

Are slugs used for brands too?

Yes. BevAlc Intelligence uses slugs for both company pages (/company/[slug]) and brand pages (/brand/[slug]). The slug format is consistent across both page types for a uniform URL structure.

← Back to Full Glossary