[Catalyst] Relative links

Jules Bean jules at jellybean.co.uk
Thu Nov 10 12:16:55 CET 2005


Bill Moseley wrote:
> Relative links are biting me again, so I'm wondering how others
> generate links in a sane way.
>   

By putting a <base href="[%c.req.base%]admin/"> in the <head> of the 
appropriate templates.
This fixes the relative links.

Or you can redirect. The base trick is very useful when you want to 
avoid the latency of a redirect though.

Jules




More information about the Catalyst mailing list