Beyond Slugs

We convert link text to slugs and thus gain safe text for use in urls and flat file names. Slugs use all lowercase and thus provide case independent retrieval of pages. Once retrieved, the title's mixed case and special characters are rendered from the title field of the page json.

Here we consider how page retrieval might make use of the full title text in cases where a slug contains insufficient information to uniquely retrieve the desired page. In a limiting case the slug may have no information what so ever. github

We trace a title as it is rendered, clicked, and resolved, client side. We further consider routing, retrieval and edits server site. Finally we address sitemap creation, async retrieval and write-through update.

# rendering

A page text is rendered with various formats recognizing the double-square-bracket notation for internal links. Some data objects expose links stored as titles sans any markup.

A title is in unicode.

A title parsed from text won't contain ']]'.

A slug for the title is encoded into a hyperlink.

# clicked

An internal hyperlink contains both a static anchor tag to an html address and the slug as a data attributed interpreted by javascript, if enabled.

A hyperlink contains context to guide resolution.

A hyperlink might contain a site to override resolution.