stylehub.cloud

Addresses: subdomains and slugs

On this page

Every brand has a subdomain, and every published manual has a public address built from it. Here are the addresses you can get, how to change them, and what happens to old links.

WhereDashboard, Domains

The three addresses

acme.stylehub.cloud
The brand address. It serves the published primary manual of that brand.
acme.stylehub.cloud/guidelines
A published manual that is not primary and has no subdomain of its own, under its path.
guidelines.stylehub.cloud
A manual with a subdomain of its own, primary or not.

Domains (opens in a new tab) lists every manual of the brand with the address it has, under Manual addresses, and marks each line Own subdomain, Root of the workspace address or Path on the workspace address. Each row has a copy button, and an Open link once the manual is published.

A manual can answer at two addresses

A manual with its own subdomain still answers under its path on the brand address, unless the brand address is itself claimed by a manual. The address shown in the dashboard is the subdomain.

The brand address

A brand gets its subdomain when it is created, made from the Company name you typed.

Which manual answers at the root

The primary manual. One manual per brand is primary, and the first manual of a brand is primary automatically.

WhereDashboard, Brand manual, Manual actions, Make primary

The button appears only on a manual that is not already primary. Press it and two addresses change at once: the new primary moves to the root of the brand address, and the old primary drops to its path. A manual with its own subdomain keeps it either way. Nothing forwards.

If the primary manual is not published, a visitor at the brand address is told the hub is not published yet. They are not sent to another manual.

Giving a manual its own subdomain

WhereDashboard, Brand manual, Settings, Web address

  1. Open the manual and go to the Web address card, Where this manual is published.
  2. Type a name. The field cleans up what you type as you type, then answers Checking availability... and either name.stylehub.cloud is available. in green or the reason it is not in red.
  3. Save the settings.

New brand manual asks for one and requires it, answering Please choose a web address for this manual. if you leave it empty. An existing manual can be given one, moved to another, or taken off one at any time. Clear the field to put it back on the brand address, and the card shows the address it falls back to.

Saving is what decides it

The green line answers for the moment you asked. Two people can be told the same name is free, and the second save is refused with That web address was just taken. Please choose another.

What a name may be

Letters a-z, digits 0-9 and hyphens, at least 3 characters and at most 40. Anything else you type is cleaned up rather than refused.

  • Capitals become lowercase, and spaces around the name are cut.
  • Any other character becomes a hyphen.
  • Runs of hyphens become one, and hyphens at the ends are removed.
  • Too short and the field answers Use at least 3 characters: letters, numbers and hyphens.

So Acme Brand! is saved as acme-brand.

Already taken

Brand addresses and manual subdomains share one pool of names, so a name is taken when either kind holds it, published or not, and the field answers "name" is already taken. Two names are allowed: the name of the brand the manual belongs to, which is what the first manual of a brand takes, and the manual's own current address. You cannot see who holds a name, and there is no queue for one.

Reserved

49 names are kept by the platform and refused to everyone. Asking for one answers "name" is reserved by the platform. Please pick another one.

Reserved
app, www, admin, dashboard, api, auth, login, signup, mail, email, smtp, imap, ftp, cdn, assets, static, img, images, media, files, download, downloads, status, help, support, docs, doc, blog, news, about, billing, pay, payments, stripe, webhook, webhooks, stylehub, root, test, staging, dev, preview, demo, go, link, links, s, u, register

The path on a brand address

A manual with no subdomain of its own, and that is not primary, is served under a path. The field is Path on the brand address in the same Web address card, shown only on a manual that is not primary. Accents are stripped, anything that is not a letter or a digit becomes a hyphen, and the result is cut to 48 characters. api, _next and favicon belong to the service, so a path that is one of those gets -manual added. A path another manual of the same brand already uses gets a hyphen and six random characters.

A manual on the brand's own name serves only itself

When a manual holds the brand's own name as its subdomain, which is how the first manual of a brand is set up, that address serves that manual and nothing else. The other manuals are reached on their own subdomains. Clear that manual's Web address field and the brand address serves the whole brand again.

Renaming, and old links

Nothing forwards. There is no redirect from an old address to a new one. The moment you save, the manual answers at the new address and the old one does not.

What changedThe old address thenWhat a visitor sees
A manual's own subdomainAn address nobody holdsThe 404 page: There is nothing at this address
The pathA path on a brand address that names no manualThe page saying the brand hub is not published yet
Primary moved to another manualThe brand root, now serving the new primaryThe other manual, which is not the one they wanted

After a rename, check links from your own website, emails and printed pieces, links inside other manuals (they are ordinary links and are not rewritten, see Text and links), anything reading the API or downloading the PDF by that name, and what search engines have indexed (see SEO).

The name the API uses

The read only API names a manual the way its public address does, so renaming an address renames the API address built from it. The dashboard page API (opens in a new tab) shows the exact API address of every published manual.

Shell
# The primary manual of the brand
curl https://stylehub.cloud/api/v1/manuals/acme.json

# A named manual of the same brand
curl https://stylehub.cloud/api/v1/manuals/acme.guidelines.json

# A manual that has its own subdomain
curl https://stylehub.cloud/api/v1/manuals/guidelines.json

Add .json for the manual, /tokens.json for its design tokens, .pdf for the document. A manual that is not published, or a name that matches nothing, answers a 404. More is in the API examples (opens in a new tab) and the API documentation (opens in a new tab).

Where a domain of your own fits

A connected domain serves the brand the way the brand address does: the root answers with the primary published manual, and the other published manuals answer under their paths. One domain per brand, on the paid plans, and it belongs to the brand rather than to a single manual. The brand address keeps working; nothing is replaced. The DNS record and what to do when the check keeps failing are in Your own domain.

Moving and copying a manual

  • Moved to another brand. Its subdomain moves with it only if the receiving brand may hold that name. A name it may not hold is dropped, and the manual falls back to the receiving brand's address.
  • Its path may change on the way. If the receiving brand already has a manual with that path, the moved one gets a suffix. Both brands' histories record it under Address.
  • Duplicated. The copy gets its own subdomain, built from its new title (the original title followed by copy) plus six random characters. It arrives as a draft and is not primary.

Moving is on Settings (opens in a new tab) under Move a manual. What else travels with a manual, and who may move one, is in Handing a brand over, moving a manual, leaving.

Who can change an address

A manual's address
The Edit sections and content permission, which owners, admins and editors have. It covers the subdomain, the path and Make primary.
The domains page
Edit workspace settings and domains for the custom domain. Without it the card reads Your role cannot manage domains. Anyone on the team can read the list of manual addresses.
The brand address
Nobody. It is fixed for the life of the brand.

A manual frozen after a downgrade cannot be edited, including its address. The page it is on keeps serving. See Roles and Downgrading.

When an address does not answer

An address nobody holds
A 404, with the page There is nothing at this address and the line The link may be old, or the page may have been renamed.
A brand with nothing published
The page says the brand is still working on this brand hub. See Publishing.
A manual that is private
The address is right and the manual is hidden. A team member can sign in and open it; everybody else sees the gate. See Visibility.
A manual past its end date
The page stays online and shows the brand mark above This manual is no longer available.

An unverified custom domain answers with none of these. It is not served at all until the DNS record is found.

Still stuck? Write to hello@stylehub.cloud and say which page you were on.

Addresses: subdomains and slugs - Stylehub