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 |
Jump to:
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
I have used the following code which seems to fix this.
if (in_array('ajaxify', $path)) {while(array_shift($path) != 'ajaxify') ;
#2