Get current domain in Fluid

Return current domain in Fluid template (with optional page uid) with help of TypoScript

TypoScript

lib.currentDomain = TEXT
lib.currentDomain {
    dataWrap = {getIndpEnv:TYPO3_REQUEST_HOST}|
    typolink.parameter.current = 1
    typolink.returnLast = url
}

Fluid

 {f:cObject(typoscriptObjectPath: 'lib.currentDomain', data: '167')}