Effect of current path

zeta ζ - March 27, 2008 - 21:06
Project:AJAXify
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:zeta ζ
Status:reviewed & tested by the community
Description

I’ve been experimenting with this module, and found that, if the menu is on a page like example.com/taxonomy/1/1 and the source string is ajaxify/div.content/node/4 it doesn’t work. Instead it seems to be looking for example.com/taxonomy/1/4, which might not even exist.

Surely ajaxify/div.content/node/4 should retrieve the <div class="content">...</div> element from example.com/node/4 whatever page the menu is on.

#1

zeta ζ - March 29, 2008 - 23:32
Assigned to:Anonymous» zeta ζ
Status:active» needs review

I have used the following code which seems to fix this.

  if (in_array('ajaxify', $path)) {
    while(array_shift($path) != 'ajaxify') ;

#2

Omar - May 14, 2008 - 10:42
Status:needs review» reviewed & tested by the community
 
 

Drupal is a registered trademark of Dries Buytaert.