In the gallery2+drupal search the results given contain incorrect links.
?q=gallery&g2_itemId=XXX
all results get given links but there is a part in the url 'amp;' which is breaking them.
the correct urls shoud be: ?q=gallery&g2_itemId=XXX
Any ideas?
Posts: 189
This does not seem to be (directly) a Drupal-embedded issue. The search works and generates the correct URLs on my installation. Looking through the gallery.module (Drupal) code here is a relevant snippet:
$find[] = array('title' => $result['fields'][0]['value'], 'link' => $urlGenerator->generateUrl(array('itemId' => $result['itemId'])), 'type' => $module['name'], 'snippet' => implode('<br />', $excerpt));This seems to just call the URL Generator to make the URL, so it should not give the extra '&'. Any ideas why it would do this, from the G2 team?
Posts: 6
You can see this in action at: http://www.maven.sc/seycrew/?q=search/gallery/pig
Posts: 189
I've uploaded a patch for the search problem at http://drupal.org/node/34301. Let me know if it works or not for you.