Index: views/web_widgets_plugin_display_web_widgets.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/web_widgets/views/web_widgets_plugin_display_web_widgets.inc,v
retrieving revision 1.1
diff -u -p -r1.1 web_widgets_plugin_display_web_widgets.inc
--- views/web_widgets_plugin_display_web_widgets.inc	24 Jun 2009 07:38:58 -0000	1.1
+++ views/web_widgets_plugin_display_web_widgets.inc	6 Jul 2009 12:29:33 -0000
@@ -255,13 +255,23 @@ class web_widgets_plugin_display_web_wid
   function attach_to($display_id) {
     $current_style = $this->get_option('embed_style');
     $current_style = empty($current_style) ? 'iframe' : $current_style;
-    $path = url($this->view->display[$this->display->id]->display_options['path'], array('absolute' => TRUE));
+    $path = url($this->argument_replace($this->view->display[$this->display->id]->display_options['path']), array('absolute' => TRUE));
     $width = $this->get_option('width');
     $height = $this->get_option('height');
     $this->view->attachment_after .= web_widgets_render_embed_code($current_style, $path, $width, $height);
   }
 
   /**
+   * Replaces the arguments into the path that will shown in the attached view.
+   */
+  function argument_replace($path) {
+    foreach ($this->view->args as $arg) {
+      $path = preg_replace('/%/', $arg, $path, 1);
+    }
+    return $path;
+  }
+
+  /**
    * Display validation.
    */
   function validate() {
