"root" $urlGenerator in NodeExpansionCallback.inc (tagtree) to work with mod_rewrite

riox

Joined: 2010-03-09
Posts: 13
Posted: Fri, 2012-08-24 12:06

Hi everyone,

I tried to use tagtree and url-rewrite but it only works from the root directory of the gallery.

if I go to a subdirectory (/test)and click expand on a subtree it loads forever
http://192.168.83.128/test/main.php?g2_view=tagtree.NodeExpansionCallback&g2_tags%5B0%5D=72&g2_tags%5B1%5D=74&g2_albumId=7 because there is no /test/main.php ans server says 404 (same for subdir icons)

I fixed the images inside NodeExpansionCallback.inc by encoding them to base64 but how I can force

Quote:
$nodeChildren = $urlGenerator->generateUrl(
array('view' => 'tagtree.NodeExpansionCallback', 'tags' => $node->tags, 'albumId' => $node->itemId));
$nodeSrc = sprintf("src=\"%s\" ", $nodeChildren);
}

to send all requests to http://192.168.83.128/main.php ?

thanks in advance.
riox