Question
How do I configure TWiki so that the
TWiki:Plugins/TablePlugin works with
TWiki:TWiki/ShorterUrlCookbook?
I followed the instructions for shorter urls, but when a page with a table on it get shown and the user clicks on a column name to sort the table, he gets an oops:
Attention
The "TWiki/TablePlugin/TWiki" web does not exist
The generated URL is:
http://server/twiki/bin/oops/TWiki/TablePlugin/TWiki/TablePlugin?template=oopsaccessdenied;def=no_such_web;param1=view#sorted_table
The column's target URL is:
http://server/TWiki/TablePlugin/TWiki/TablePlugin?sortcol=2;table=2;up=0#sorted_table
I tried to "fix" the problem, and made the following change to
TablePlugin/Core.pm, around line 577 (sub handler):
# Extract and attach existing parameters
my $plist = $cgi->query_string();
$plist =~ s/\;/\&/go;
$plist =~ s/\&?sortcol.*up=[0-9]+\&?//go;
$plist .= '&' if $plist;
# $url = $cgi->url . $cgi->path_info() . '?' . $plist;
# $url =~ s/\&/\&/go;
$url = '?' . $plist;
In short, I remove everything before the query string from the URL, and the browser ends up getting a relative URL of the form
?sortcol=2;table=2;up=0#sorted_table, which apparently made the trick, but I don't know if this is the correct way to go about it.
I also commented the second line because of a bug I saw (check my comments at
TWiki:Plugins/TablePluginDev near the end, on 28 Feb 2007).
I'm attaching my configure script output and httpd-wiki.conf.
Environment
--
JoseGPedro - 28 Feb 2007
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Cold you please file a bug report at
Bugs:TablePlugin if you feel that this has not been fixed in the latest release?
--
PeterThoeny - 02 Apr 2007