Template helper authrouteurl

bauplan.helpers

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)

Source:
Parameters:
Name Type Attributes Description
0 string

Route name

params object <optional>

Additional params to be passed to the underlying router method