How to use URL parameter and page callbacks for tab menus correctly? I'm using Drupal 6 and I'm trying to display two tab (menus) on a page that has the URL /vehicle_info.
Both pages that the tabs link to should take a node's nid as parameter.
My current code looks as follows:

  $items['vehicle_info/%/basic'] = array(
    'title' =&gt; t('Basic &amp; Bookings'),
    'page arguments' =&gt; array(1),
    'access callback' =&gt; 'user_access',
    'access arguments' =&gt; array('administer fleet'),
    'type' =&gt; MENU_DEFAULT_LOCAL_TASK,
    'weight' =&gt; 10
   );
  $items['vehicle_info/%/history'] = array(
    'title' =&gt; t('Service history'),
    'page callback' =&gt; 'vehicle_service_history',
    'page arguments' =&gt; array(1),
    'access arguments' =&gt; array('administer fleet'),
    'type' =&gt; MENU_LOCAL_TASK,
    'weight' =&gt; 20
   );


I'm running into 2 issues:


The tab "Service history" does not open the page "vehicle_service_history" (which is actually a view with the URL vehicle_service_history). It opens a page with the URL
"vehicle_info/123/history", which does not exist (123 stands for the current nid).
The default tab "Basic &amp; Bookings" does not link to the URL "vehicle_info/123" but only to "vehicle_info".


What am I missing?
A couple of things seem to be missing here. The main confusion seems to be around page callback which should be a function not a URL. The URL is the key to your $items array.


Your first menu item has no 'page callback'. This would be inherited from the parent item (keyed as $items['vehicle_info/%'] and a type of MENU_NORMAL_ITEM) if you had one, but you don't.
Your second item menu seems to be confusing URL with callback as well. If you want it handled by a view then your page display on your view should handle the URL path vehicle_info/%/history, i.e. it will have a contextual filter. Does your view work like this?