Returns the login url for a given site.


  • Full name: login_url
  • Defined in: cms/core/Shared/Helpers/url.php

Parameters

Parameter Type Description
$redirect string Path to redirect to on log in.
$path string Optional. Path relative to the login url. Default empty.
$scheme string|null Optional. Scheme to give the home URL context. Accepts
'http', 'https', 'relative', or null. Default 'login'.

Return Value

string

Returns the login url.