Re: Link redirect Question

Thomas Vandahl <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.user
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.