🚨 Disclaimer: Routify 3 is currently in Release Candidate stage.

Please be aware that while the documentation is comprehensive, it may contain inaccuracies or errors. The codebase is also subject to changes that could affect functionality. We appreciate your understanding and welcome any feedback or contributions.

api

Helpers

Url

$url (path, params)

Creates URLs from internal paths and parameters.

path: string | '$leaf'

The internal path to the node, eg.: /blog/[slug]/comments. Use '$leaf' to get the URL for the current leaf node.

params: object

The parameters to be used in the URL. Parameters not used in the path will be appended to the url as a query string.