Question
I installed the
FlowchartPlugin and i access it via
http://192.168.0.56/twiki/bin/view/TWiki/FlowchartPluginExample
and i can see the flow on the wikipage, but when i click one shape the generated code tries to redirect me to
http://localhost/cgi-bin/twiki/bin/view/TWiki/FlowchartPluginExample#xtopic
instead of
http://192.168.0.56/twiki/b....ple#xtopic
.
I didn´t be used perl before, but i found in /var/www/twiki/lib/TWiki/Plugins the file FlowchartPlugin.pm wich has the code ( lines 626 and so on ):
sub encaixaMapImg
{
.....
.....
my $URL = TWiki::Func::getViewURL( $web, $topic );
.....
.....
$mapImg .= ' <area href=" '.$URL.'#'.anchor ......
so i tried to change the my $URL assigment for:
my $URL = TWiki::cfg{DefaultUrlHost}.TWiki::cfg{ScriptUrlPath}.'$web/$topic';
but the wiki page stills send me to localhost/cgi-bin
Thanks in advance
Environment
--
LesterFajardo - 11 May 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
You need to run
configure and make sure your {DefaultUrlHost} setting matches your server. That's probably all you need to do.
--
CrawfordCurrie - 20 May 2007
I had the same problem and fixed it in the following way:
In the file
FlowchartPlugin.pm, there is a line like:
my $URL = TWiki::Func::getViewUrl( $web, $topic);
After that line, add the following line:
$URL =~ s/http:\/\/localhost\/cgi-bin\/twiki/\/twiki\/bin/i;
You might have to make change 'http' to 'https' if you're on a secure server.
Also, it will only fix a flow chart that you save
after you make this change.
--
AdrianHutchinson - 27 May 2008