Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 将fe_用户uid作为参数添加到重定向URL_Typo3 - Fatal编程技术网

Typo3 将fe_用户uid作为参数添加到重定向URL

Typo3 将fe_用户uid作为参数添加到重定向URL,typo3,Typo3,如果用户登录,我有一个标题位置重定向 现在我想将fe_用户uid作为get参数添加到链接中,但它不起作用。我怎样才能解决这个问题 到目前为止,我尝试的是: config { additionalHeaders { #10.data = TSFE:fe_user|user|username 10.header = Location: https://mydomain.de?userId={TSFE:fe_user|user|username} } config.additi

如果用户登录,我有一个标题位置重定向

现在我想将fe_用户uid作为get参数添加到链接中,但它不起作用。我怎样才能解决这个问题

到目前为止,我尝试的是:

config {
  additionalHeaders {
    #10.data = TSFE:fe_user|user|username
    10.header = Location: https://mydomain.de?userId={TSFE:fe_user|user|username}
  }
config.additionalHeaders.10.header.insertData = 1
}

可能是因为
config.additionalHeaders.10.header.insertData=1
需要放在最后一个结束括号之后,或者只需将
10.header.insertData=1
放在
10.header=
行之后?您确定,
header
具有stdWrap属性,因此将解释
insertData
?听起来像
header
只是一个简单的文本:“header:theheaderstring”还有其他集成方法吗?例如,对于temp.var?我将使用
userFunc
、插件控制器或中间件来执行重定向。我已经检查了felogin的钩子是否有可能改变重定向URL,但没有找到任何钩子。