Index: freelinking.module
===================================================================
--- freelinking.module	(revision 8839)
+++ freelinking.module	(working copy)
@@ -14,7 +14,7 @@
 
   if ($may_cache) {
     $items[] = array(
-      'path' => 'freelinking', 
+      'path' => variable_get("freelinking_namespace", "freelinking"), 
         'title' => t('Freelinks'),
         'access' => user_access('access freelinking list'),
         'callback' => 'freelinking_page',
@@ -165,6 +165,12 @@
     '#default_value' => variable_get("freelinking_onceonly", 0) == 1 ? TRUE : FALSE,
     '#description' => t('If desired you can only turn the first occurance of a freelink into a link. This can improve the appearance of content that includes a lot of the same CamelCase words.')
   );
+  $form["freelinking_namespace"] = array(
+    '#title' => t('Freelinking namespace'),
+    '#type'  => 'textfield',
+    '#default_value' => variable_get("freelinking_namespace", 'freelinking'),
+    '#description' => t('Normal freelinking behavior rewrites all freelinks under the /freelinking namespace, but if it is preferable to use a different namespace, enter it here.')
+  );
 
   return system_settings_form($form);
 }
@@ -275,10 +281,10 @@
          $replacement = '<a class="freelinking external" href="' . $freelink . '">' . $phrase . '</a>';
       }
       else if (!_freelinking_exists($phrase)) {
-        $replacement = l($phrase, 'freelinking/' . rawurlencode($freelink), array('class' => 'freelinking_nonexistent'));
+        $replacement = l($phrase, variable_get("freelinking_namespace", "freelinking") . '/' . rawurlencode($freelink), array('class' => 'freelinking_nonexistent'));
       }
       else {
-        $replacement = l($phrase, 'freelinking/' . rawurlencode($freelink), array('class' => 'freelinking'));
+        $replacement = l($phrase, variable_get("freelinking_namespace", "freelinking") . '/' . rawurlencode($freelink), array('class' => 'freelinking'));
       }
     }
 
@@ -286,7 +292,7 @@
       $pattern = '/\b' . $wikiword . '\b(?![^<]*>)/';
       $phrase = $wikiword; // consistency for the db
       $freelink = $wikiword; // also for the db
-      $replacement = l($wikiword, 'freelinking/' . urlencode($wikiword));
+      $replacement = l($wikiword, variable_get("freelinking_namespace", "freelinking") . '/' . urlencode($wikiword));
     }
     $text = preg_replace($pattern, $replacement, $text, variable_get("freelinking_onceonly", 0) ? 1 : -1);
     
