[Catalyst] Using external URLs?

Ian Docherty catalyst at iandocherty.com
Wed Apr 11 09:00:28 GMT 2012


On 11 April 2012 09:38, Johannes Kilian <Jo.Kilian at gmx.de> wrote:
> Hi there,
>
> I've got a probably simple question, but cannot figure it out yet.
>
> I'm using Template::Toolkit and Catalyst - and I'm having problems with absolute URLs ...
>
> Within my Template I have the following absolute URL:
> <a href="http:\\myserver1\test.html">blabla</a>
>

Just in case this is not a typo, try

<a href="http://myserver1/test.html">blabla</a>

Instead.

> After processing the Template (via Catalyst::View::TT) my previously correct URL is modified to:
> http:\\mycatalystserver\myserver1\test.html
>
> (where "mycatalystserver" is the server where catalyst runs ...)
>
> Who modifies my URL - Catalyst or Template::Toolkit? (I think it's catalyst - since within my template I do only have plain text in the eyes of Template::Toolkit ...)
>
> And most important
> How can I suppress this modification to be able to use the original URL?
>
> Thanks in advance
> Johannes
> --
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/



More information about the Catalyst mailing list