Allow display of menu links on 404 error page

JohnAlbin - April 4, 2009 - 15:27
Project:Drupal
Version:7.x-dev
Component:menu system
Category:task
Priority:normal
Assigned:Unassigned
Status:duplicate
Issue tags:Usability
Description

By default, on 404 Not Found pages:

  1. The "Main menu" block, the "Secondary menu" block, and any other menu-based blocks are turned off. This is because, by default, the site_404 variable is blank, so there's no active menu item and, thus, menu_get_item() returns FALSE and menu_tree_page_data() will return no data. And since menu_tree() relies on menu_tree_page_data(), there's no menu trees.
  2. The Primary links and Secondary links of your theme are turned off. Again, menu_primary_links() relies on menu_tree_page_data().

So, basically on any 404 error page, all of your navigational menus are turned off. Considering that allowing a visitor to navigate away from a 404 error page is essential, this seems like a pretty big usability fail.

#1

Dave Reid - April 4, 2009 - 16:40
Status:active» duplicate

Duplicate of #116895: Show regions at 404 page.

#2

JohnAlbin - April 5, 2009 - 00:11
Status:duplicate» active

Heh, this is what I get for only half finishing my comments on #116895: Show regions at 404 page yesterday.

This issue is being split from that issue to make patch review easier. :-)

#3

Xano - April 6, 2009 - 11:01

Subscribing.

#4

akahn - June 1, 2009 - 14:30

I agree that this is a usability issue. John, what is your vision of this? In Drupal 7, should menus appear on 404 pages, or would this be an option? Where would the setting live?

#5

AntoineSolutions - July 1, 2009 - 01:03

subscribing.

#6

dww - November 9, 2009 - 22:16
Status:active» duplicate

#233807: No navigation links on 404 pages

 
 

Drupal is a registered trademark of Dries Buytaert.