Modify the rewrite_url global given by yogi on page 1 of this thread to this:
Code:
sub { my $ID = shift;
my $Title = shift;
my $cats = $DB->table('Links')->get_categories($ID);
my ($cat_id,$cat_full_name) = each %$cats;
my $cat_url = $DB->table('Category')->as_url($cat_full_name);
$Title =~ y/ \t\r\n?"'#/-/d;
return '/detail/' . $Title . '-L' . $ID . '.html';
}
That should do it (everything else remains the same I think). Note that I have modified the last line so that detailed links on my site are all in a directory called 'detail' - if they are in cat1/cat2/cat3 for example there is a danger of them getting 'buried' too deep in the site.