|
Date: 12/3/2007 11:27 am · Subject: ExtrasUrl in conf http:// stripping / from URL · Rating: 4
We wanted to make our user's experience better/faster by putting some of the WebGUI components out on our CDN. To do this, we changed the extras url to be an http url. The problem is WebGUI is stripping the/a slash from the url so instead of http://blah.blah.blah.org it's rendering http:/blah.blah.blah.org and the JS is not working (in IE). Firefox seems to compensate fro this problem. Don B., on our team, found and fixed the problem by commenting out line 141 in Url.pm in /lib/WebGUI/Session/ (below). Combinds the base extrasURL defined in the config file with a specfied path.
=head3 path
The path to the thing in the extras folder that you're referencing. Note that the leading / is not necessary. Multiple consecutive slashes will be replaced with a single slash.
=cut
sub extras { my $self = shift; my $path = shift; my $url = $self->session->config->get("extrasURL").'/'.$path; #$url =~ s!/+!/!g; return $url; }
#-------------------------------------------------------------------
|