Русский

HOBA

Routes and public addresses

Core decides the page path, locale prefix, and redirects; the theme or proxy does not.

Hierarchy and the canonical slash

A page path joins the slugs of all non-empty ancestors with its own slug. home, index, and an empty slug add no segment; a top-level home becomes /, and a guide page inside docs becomes /docs/guide. The artifact is stored as <path>/index.html; a request without the trailing slash gets a 301 to <path>/ only when the release actually contains <path>/index.html.

Languages and prefixes

The default locale is served at the root and other locales under /{locale}. With ru as default those are / and /en/...; with en as default they are /ru/... and /. The prefix is also added to a custom URL pattern. Changing the default locale does not translate slugs or create pages: it changes only which existing version is available without a prefix.

Host bindings and base paths

Core selects the site using (host, base_path). A root binding can coexist with nested bindings; the longest match on segment boundaries wins. Core strips base_path before looking for the artifact. The directory /xax/ maps to index.html, and /xax first redirects to /xax/.

Without a matching binding, Core returns 404. X-Forwarded-Host is only trusted behind a configured proxy. Immutable /sites/{site}/{release}/... paths do not depend on bindings.

Redirects

A redirect is an exact source_path, target_path, and a code of 301, 302, 307, or 308; the API has no update operation, so delete and recreate the record. Renaming or moving a page captures a redirect automatically. A source that is also a live page and a redirect to itself are dropped during planning so they cannot shadow content. For extensionless paths, an operator redirect is checked before the canonical-slash rule.

Custom URL patterns

In custom mode a site declares patterns for page, collection, category, and item with the placeholders {slug}, {collection}, and {category}. page and item require {slug}; collection and category may use {slug} instead of their own placeholder. A pattern starts with / and contains no empty segment, .., ?, #, or control character. Value segments cannot be empty or equal to . or ... If two nodes produce one path, release generation fails.