diff --git a/a/plugins/item_active_links.inc b/b/plugins/item_active_links.inc
index 4074a80..1c92a58 100644
--- a/a/plugins/item_active_links.inc
+++ b/b/plugins/item_active_links.inc
@@ -31,11 +31,26 @@ class CurrentSearchItemActiveLinks extends CurrentSearchItem {
         $params = $adapter->getUrlProcessor()->getParams();
         $keys_copy = $keys;
         unset($keys_copy[$i]);
+        $new_search_terms = implode(' ', $keys_copy);
         
-        $params['search_api_views_fulltext'] = implode(' ', $keys_copy);
+        if(!empty($this->settings['arg']) && is_numeric($this->settings['arg'])) {
+          // Change the appropriate URL argument
+          $arg_position = $this->settings['arg'] - 1;
+          $args = arg();
+          if(!empty($args[$arg_position])) {
+            $args[$arg_position] = $new_search_terms;
+          }
+          $path = implode( '/', $args );
+
+        } else {
+          // Change the search filter parameter
+          $params['search_api_views_fulltext'] = $new_search_terms;
+          $path = current_path();
+        }
+
         $variables = array(
           'text' => check_plain($key),
-          'path' => current_path(),
+          'path' => $path,
           'options' => array(
             'attributes' => $attributes,
             'html' => TRUE,
@@ -130,6 +145,17 @@ class CurrentSearchItemActiveLinks extends CurrentSearchItem {
       '#description' => t('Add the <code>rel="nofollow"</code> attribute to active item links to maximize SEO by preventing crawlers from indexing duplicate content and getting stuck in loops.'),
     );
 
+
+    $form['arg'] = array(
+      '#type' => 'textfield',
+      '#size' => 8,
+      '#maxlength' => 128,
+      '#title' => 'URL argument position',
+      '#description' => t('Normally, this can be left empty. <br/> If search terms are in a URL argument (for example, URLs like <code>search/search terms</code> rather than <code>search?search_api_views_fulltext=some terms</code>), enter the number of the position of the search terms in the URL here. <br />1 is the first argument, so enter 2 for a URL like <code>search/some%20terms</code>, 3 for a URL like <code>search/advanced_search/some%20terms</code>, etc.'),
+      '#element_validate' => array('element_validate_number'),
+      '#filters' => array('trim', 'uppercase')
+    );
+
     // Adds token tree.
     $form['tokens'] = $this->getTokenTree(array('facetapi_active'));
   }
