PhoenixKit.Modules.Publishing.Web.Controller.SlugResolution
(PhoenixKitPublishing v0.1.6)
Copy Markdown
View Source
URL slug resolution for the publishing controller.
Handles resolving URL slugs to internal slugs, including:
- Per-language custom URL slugs
- Previous URL slugs for 301 redirects
- DB-based slug lookups
Summary
Functions
Builds redirect URL for 301 redirects from cached post data.
Resolves URL slug to internal slug using cache/DB.
Resolves a URL slug to the internal post slug. Used by versioned URL handler and other places that need the internal slug.
Functions
Builds redirect URL for 301 redirects from cached post data.
Resolves URL slug to internal slug using cache/DB.
Returns:
{:redirect, url}for 301 redirect to new URL{:ok, identifier}for resolved internal slug:passthroughfor direct use
Resolves a URL slug to the internal post slug. Used by versioned URL handler and other places that need the internal slug.