Index: html/pages/ports.inc.php
===================================================================
--- html/pages/ports.inc.php	(revision 7056)
+++ html/pages/ports.inc.php	(working copy)
@@ -200,7 +200,7 @@
 {
   if ($vars['format'] == 'list' && !isset($vars['view'])) { $vars['view'] = 'basic'; }
   if ($vars['format'] == 'list' && $vars['view'] == $option) { $navbar['options'][$option]['class'] .= " active"; }
-  $navbar['options'][$option]['url'] = generate_url($vars,array('format' => 'list', 'view' => $option));
+  $navbar['options'][$option]['url'] = generate_url(array('page' => 'ports', 'format' => 'list', 'view' => $option));
 }
 
 foreach (array('graphs') as $type)
@@ -207,13 +207,13 @@
 {
   foreach ($config['graph_types']['port'] as $option => $data)
   {
-    if ($vars['format'] == $type && $vars['graph'] == $option)
+    if ($vars['view'] == $type && $vars['graph'] == $option)
     {
       $navbar['options'][$type]['suboptions'][$option]['class'] = 'active';
       $navbar['options'][$type]['text'] .= " (".$data['name'].')';
     }
     $navbar['options'][$type]['suboptions'][$option]['text'] = $data['name'];
-    $navbar['options'][$type]['suboptions'][$option]['url'] = generate_url($vars, array('view' => NULL, 'format' => $type, 'graph' => $option));
+    $navbar['options'][$type]['suboptions'][$option]['url'] = generate_url($vars, array('view' => $type, 'graph' => $option));
   }
 }
 
Index: html/pages/ports/list.inc.php
===================================================================
--- html/pages/ports/list.inc.php	(revision 7056)
+++ html/pages/ports/list.inc.php	(working copy)
@@ -86,7 +86,7 @@
 {
 
   $ports_total++;
-  print_port_row($port);
+  print_port_row($port, $vars);
 
 }