Hi,

A small bug:
When clicking "re-run" to view a tool form, and the tool has embedded images, 
the URL of the images is not working.


When viewing a tool that has embedded images, the relative <img> URL is 
"./static/images/histogram2.png".
The tool's URL comes from:  
"http://main.g2.bx.psu.edu/tool_runner?tool_id=histogram_rpy";
and so the absolute image URL becomes: 
"http://main.g2.bx.psu.edu/./static/images/histogram2.png"; which works OK.


But when viewing a tool by clicking "re-run", the tool's URL is:
"http://main.g2.bx.psu.edu/galaxy/tool_runner/rerun?id=56";
("rerun" being a method in the "tool_runner" controller),
which in turns makes the image absolute URL:
"http://main.g2.bx.psu.edu/tool_runner/./static/images/XXXXX.png"; - and it 
doesn't work.

Note that the solution of changing all the images URLs in the XML files to 
start at the root (e.g. "/static/images/XXXX.png") is not optimal, because it 
will bypass the "prefix" URL that some people use (e.g. with 
"http://rave.cshl.edu/galaxy"; instead of "http://rave.cshl.edu/";).


a workaround (when using apache) is to add the following rewrite_rule:
RewriteRule ^/tool_runner/static/(.*) /localdata1/galaxy/galaxy_prod/static/$1 
[L]

Or if using a "/galaxy" prefix:
RewriteRule ^/galaxy/tool_runner/static/(.*) 
/localdata1/galaxy/galaxy_prod/static/$1 [L]


-gordon
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Reply via email to