@umbraco-cms/backoffice
Preparing search index...
packages/core/router
constructAbsolutePath
Function constructAbsolutePath
constructAbsolutePath
<
D
=
any
,
P
=
any
>
(
slot
:
IRouterSlot
<
D
,
P
>
,
path
?:
string
,
)
:
string
Constructs the correct absolute path based on a router.
Handles relative paths: "mypath"
Handles absolute paths: "/mypath"
Handles traversing paths: "../../mypath"
Type Parameters
D
=
any
P
=
any
Parameters
slot
:
IRouterSlot
<
D
,
P
>
path
:
string
= ''
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@umbraco-cms/backoffice
Loading...
Constructs the correct absolute path based on a router.