Index: bio.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/bio/bio.module,v
retrieving revision 1.2.2.25
diff -u -p -r1.2.2.25 bio.module
--- bio.module	28 Jan 2008 08:30:13 -0000	1.2.2.25
+++ bio.module	19 Mar 2008 00:28:16 -0000
@@ -71,9 +71,9 @@ function bio_menu($may_cache) {
         'access' => $access,
       );
     }
-    elseif (variable_get('bio_profile', 0) && (arg(0) == 'node') && is_numeric(arg(1)) && !arg(2)) {
-      // If we're about to visit a bio node page, but we've got "use bios for profiles" selected,
-      // redirect to the user page.
+    elseif (variable_get('bio_profile', 0) && variable_get('bio_profile_redirect', 0) && (arg(0) == 'node') && is_numeric(arg(1)) && !arg(2)) {
+      // If we're about to visit a bio node page, but we've got "use bios for profiles" and
+      // "Redirect bio nodes" selected, redirect to the user page.
       $node = node_load(arg(1));
       if (user_access('access user profiles') && $node->type == bio_get_type()) {
         drupal_goto('user/'. $node->uid);
@@ -346,6 +346,12 @@ function bio_settings() {
     '#description' => t('View, edit, and display biography information on the user account page.'),
     '#default_value' => variable_get('bio_profile', 0),
   );
+  $form['bio_profile_redirect'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Redirect bio nodes to user profiles'),
+    '#description' => t('Redirect user attempting to view a bio node, to the users profile page instead.'),
+    '#default_value' => variable_get('bio_profile_redirect', 0),
+  );
   $form['bio_profile_takeover'] = array(
     '#type' => 'checkbox',
     '#title' => t('Takeover profile.'),
