Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.2.0

Bug #8161 error in 'prevnext' generation with prefixed url
Submitted: 2006-07-07 13:35 UTC
From: worldclubs at post dot cz Assigned: avb
Status: Closed Package: HTML_Menu (version 2.1.2)
PHP Version: 5.0.0 OS: Win
Roadmaps: (Not assigned)    
Subscription  


 [2006-07-07 13:35 UTC] worldclubs at post dot cz (mike)
Description: ------------ Plese test with your test data in pear package and with prefixed url. The prefixed url is not shown in hrefs of 'prevnext' menu type in menu item 2.1 and 1 .. << Menu item 1.3.2 ^ Menu item 1 ^ Menu item 2.1 >> if there is no prefix its looks correct .. Test script: --------------- $data = array( 1 => array( 'title' => 'Menu item 1', 'url' => '/item1.php', 'desc' => 'a special element', 'sub' => array( 11 => array('title' => 'Menu item 1.1', 'url' => '/item1.1.php', 'desc' => 'nothing special here'), 12 => array( 'title' => 'Menu item 1.2', 'url' => '/item1.2.php', 'desc' => 'a very special element', 'sub' => array( 121 => array('title' => 'Menu item 1.2.1', 'url' => '/item1.2.1.php'), 122 => array( 'title' => 'Menu item 1.2.2', 'url' => '/item1.2.2.php', 'desc' => 'a really very special element', 'sub' => array( 1221 => array('title' => 'Menu item 1.2.2.1', 'url' => '/item1.2.2.1.php'), 1222 => array('title' => 'Menu item 1.2.2.2', 'url' => '/item1.2.2.2.php') ) ), 123 => array('title' => 'Menu item 1.2.3', 'url' => '/item1.2.3.php'), ) ), 13 => array( 'title' => 'Menu item 1.3', 'url' => '/item1.3.php', 'sub' => array( 131 => array('title' => 'Menu item 1.3.1', 'url' => '/item1.3.1.php'), 132 => array('title' => 'Menu item 1.3.2', 'url' => '/item1.3.2.php'), ) ) ) ), 2 => array( 'title' => 'Menu item 2', 'url' => '/item2.php', 'sub' => array( 21 => array('title' => 'Menu item 2.1', 'url' => '/item2.1.php'), 22 => array( 'title' => 'Menu item 2.2', 'url' => '/item2.2.php', 'sub' => array( 221 => array('title' => 'Menu item 2.2.1', 'url' => '/item2.2.1.php') ) ) ) ), 3 => array('title' => 'Menu item 3', 'url' => '/item3.php'), 4 => array( 'title' => 'Menu item 4', 'url' => '/item4.php', 'sub' => array( 41 => array('title' => 'Menu item 4.1', 'url' => '/item4.1.php'), 42 => array('title' => 'Menu item 4.2', 'url' => '/item4.2.php'), 43 => array('title' => 'Menu item 4.3', 'url' => '/item4.3.php') ) ) ); $menu =& new HTML_Menu($data2); //i using this type od urls !! can be a reason ? $menu->forceCurrentUrl(/myweb/item2.php); //for test $menu->setUrlPrefix('/myweb/'); $menu->show('prevnext');

Comments

 [2006-07-07 14:53 UTC] avb (Alexey Borzov)
The bug is there indeed... It's difficult to say, though, whether the expected behaviour is to prepend prefix or not to prepend in this particular case. Need to investigate further.
 [2006-10-08 15:27 UTC] avb (Alexey Borzov)
Fixed in release 2.1.3