Sheldon Ross wrote:
> Another question I have:
> Is there an easier way to redirect to secure server.
>
> I've figured out a way to do it.
> Basically on a screen I'll have something like:
>
> <a
> href="$link.setPage('mydir,mytemplate').toString().replaceAll("http:","https:")">
> Secure Link</a>
I'd suggest to extend the TemplateLink pull-tool to allow to call
setSecure() on the underlying TemplateLink object. This would allow
something in the line of
#if(!$data.Secure)
$data.Response.setRedirectURI("$link.setPage('mydir,mytemplate').setSecure(true).getAbsoluteLink()");
$data.setStatusCode(302)
#end
Bye, Thomas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]