🚨 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
IsActiveFragment
$isActiveFragment (path, params, options)
Inline feature: Same as isActive
, but remains true as long as the node is the active component of its folder, even if the folder itself isn't the active fragment.
path:
string
The internal path to the URL, eg.: /blog/[slug]/comments
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.
options:
urlOptions
(default: { recursive: true }
) urlOptions
recursive:
boolean
Returns true if a descendant of the path is active