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 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.
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
There's an open bug already,
Bugs:Item5408
, and a closed one at
Bugs:Item2525
that bug 5408 says still didn't fix it.
I'm not using TWiki anymore since I left that job a long time ago, but I'm putting these pointers to the bugs here as this question seems to have been helpful to others.
Regards,
--
JoseGPedro - 2012-09-11