From: "Jim Spath" <[email protected]>
Octavian Râsnita wrote:
But if in the templates you use urls like:
<a href="/user">...</a>
you need to change them to urls like:
<a href="[% c.uri_for('/user') %]">...</a>
There is an alternative to using uri_for in every link:
<base href="[% c.request.base %]">
...
<a href="user"></a>
This method will work whether your deployment is at the base of the
domain, or a subdirectory.
Thanks for remembering about <base>. I think that this technique won't work
if the links start with "/" though, like:
<a href="/user"></a>
So, it is better to create the links using uri_for() from the beginning or
use only relative links...
Octavian
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/