Andy wrote:
Hi, I see the problem :P
You use:
Code:
<a href="/<%Full_Name%>"><%Name%></a>..but you need to use:
Code:
<a href="<%URL%>"><%Name%></a>=)
Cheers
Hi Andy,
O.K. I did that, but now I have a part of the URL twice.
I think I have to change this part of the global:
Code:
sub { my $category = $DB->table('Category');
$category->select_options('ORDER BY Name');
my $sth = $category->select( ['Has_New_Links','Number_of_Links','Name','Full_Name'] );
my @cats;
while (my $cat = $sth->fetchrow_hashref) {
$cat->{URL} = "$CFG->{build_root_url}/" . $category->as_url($cat->{Full_Name}) . "/$CFG->{build_index}";
push @cats, $cat;
}
return { new_categories => \@cats };
}
Matthias
Matthias
gpaed.de