Template helper authrouteurl


Outputs a URL given the name of a route that ensures that the user is logged in first

 {{authrouteurl "route.key"}}

See bauplan.router.base.reverseWithAuth

(Possibly somewhat redundant since protected URLs will always redirect to the auth'd URL any way)

Name Type Attributes Description
0 string

Route name

params object <optional>

Additional params to be passed to the underlying router method