[Catalyst] uri_for() question
Bob Faist
bob.faist at gmail.com
Mon Mar 27 21:18:23 CEST 2006
I have a header template which is creating links to javascript and css
files. When I access the Catalyst app from localhost using
"http://localhost:3000/finance", everything works fine. If I access
the same app from a different host using a public internet site
"http://webapps.bobfaist.com/finance", then the css and javascript
files are not being loaded. If I view the source HTML, the links are
prepended with "http://192.168.1.100:3000/".
The header.tt template is using "c.uri_for()".
<script type="text/javascript" src="[%
c.uri_for('/static/nifty_corners.js') %]"/>
<link rel="stylesheet" type="text/css" href="[%
c.uri_for('/static/finance.css') %]"/>
<link rel="stylesheet" type="text/css" href="[%
c.uri_for('/static/nifty_screen.css') %]"/>
Is there a config option missing? Do I need to alter $c->request->base?
Thanks.
More information about the Catalyst
mailing list