<f:link.action> 生成在standaloneview中添加两个下划线(__)
<f:link.action> generation in standaloneview adds two underscores (__)
我正在创建一个简单的用户注册。为此,我通过 standaloneView
发送了一封带有哈希的确认邮件,并使用 f:link.action
创建了 link。看起来如下。
<f:link.action pluginName="pi1" controller="MyController" action="myAction" arguments="{token: '{token}'}" absolute="true" noCache="true" noCacheHash="true">Confirm</f:link.action>
创建的 link 看起来像:
我的第二次尝试是:
<f:link.action pluginName="extKey_pi1" controller="MyController" action="myAction" arguments="{token: '{token}'}" absolute="true" noCache="true" noCacheHash="true">Confirm</f:link.action>
创建的 link 看起来像:
这里2个下划线(__
)减半。
我该如何解决这个问题?我可以手动设置 href,但这不是很整洁。
如果您不在当前扩展中创建 link,则还必须提供 extensionName
作为参数。请注意,您必须传递不带下划线的扩展名。
<f:link.action
extensionName="extKey"
pluginName="pi1"
controller="MyController"
action="myAction"
arguments="{token: '{token}'}"
absolute="true"
noCache="true"
noCacheHash="true"
>
Confirm
</f:link.action>
我正在创建一个简单的用户注册。为此,我通过 standaloneView
发送了一封带有哈希的确认邮件,并使用 f:link.action
创建了 link。看起来如下。
<f:link.action pluginName="pi1" controller="MyController" action="myAction" arguments="{token: '{token}'}" absolute="true" noCache="true" noCacheHash="true">Confirm</f:link.action>
创建的 link 看起来像:
我的第二次尝试是:
<f:link.action pluginName="extKey_pi1" controller="MyController" action="myAction" arguments="{token: '{token}'}" absolute="true" noCache="true" noCacheHash="true">Confirm</f:link.action>
创建的 link 看起来像:
这里2个下划线(__
)减半。
我该如何解决这个问题?我可以手动设置 href,但这不是很整洁。
如果您不在当前扩展中创建 link,则还必须提供 extensionName
作为参数。请注意,您必须传递不带下划线的扩展名。
<f:link.action
extensionName="extKey"
pluginName="pi1"
controller="MyController"
action="myAction"
arguments="{token: '{token}'}"
absolute="true"
noCache="true"
noCacheHash="true"
>
Confirm
</f:link.action>