<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 27, 2012, at 11:00 AM, Nick Ager wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><div style="word-wrap:break-word"><div><div>&nbsp; I am also struggling to understand why everything breaks. My nginx.conf file redirects to /var/www/glass for files that I refer to in my code, so I only put 'picture.jpg' for an image, for instance, or 'bootstrap.css', and it all works great. Would you call that a relative path?</div>
<div><br></div><div>&nbsp; If I put in that single addToPath line in updateUrl:&nbsp;</div><div class="im"><div><br></div><div><blockquote type="cite">updateUrl: aUrl<br></blockquote><blockquote type="cite"><span style="white-space:pre-wrap">        </span>super updateUrl: aUrl.</blockquote>
<blockquote type="cite"><span style="white-space:pre-wrap">        </span>aUrl addToPath: self class name</blockquote></div></div></div></div></blockquote><div><br></div><div>So in your render methods do you have code that looks like:</div>
<div><br></div><div>html image url: &nbsp;'picture.jpg'.</div><div><br></div><div>If so the request url will be relative to page path, which you are modifying by adding the class name.</div><div>I'd normally develop using a file library or external file library which would look like:&nbsp;</div>
<div><br></div><div>html image url: &nbsp;MyFileLibrary / #pictureJpg.</div><div><br></div><div>this generates html as: &lt;img src='/files/MyFileLibrary/picture.jpg'&gt;</div><div><br></div><div>which is always absolute from the root.</div>
<div><br></div></div></blockquote><div><br></div><div>&nbsp; Yes, I have html image tags as you describe. I have been told not to use the FileLibrary class for things like CSS, etc, because it gets cached somewhere where it shouldn't,&nbsp;</div><div>but I am forgetting the exact reason now. So, I don't use the FileLibrary for anything, in deployment, and I'm talking about my deployed system here. This code works correctly in my local system that uses a FileLibrary.&nbsp;</div><br><blockquote type="cite"><div class="gmail_quote"><div>Have a look with the developer tools (firebug etc) to see what the request path is</div><div><br></div></div></blockquote><div><br></div><div>&nbsp; Thanks...</div><div><br></div><div>&nbsp; Larry</div><br><blockquote type="cite"><div class="gmail_quote"><div>Cheers</div><div><br></div><div>Nick</div></div>
_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></div><br></body></html>