Popups API - Drupal 6.x-2.0-beta0 - Popup is automatically closing I am trying to add the site contact form in popup using Popups API - Drupal 6.x-2.0-beta0  module. In popups_test.module popups/test page I am able to add the link contact like following

function _popups_test_popups() {
  popups_add_popups();
 $output .= '&lt;li&gt;'. l("Contact Us", 'contact',
               array( 'attributes' =&gt; array('id' =&gt; 'test-popup','class'=&gt;'popups')));
return $output;
}


Everything is working fine.

The same thing I am trying to add in a block like following

&lt;?php
popups_add_popups();
print l("Contact Us.", 'contact', array('attributes'=&gt;array('class' =&gt; 'popups')));
?&gt;


Using this the popup is opeing and facing following issue,
1. when I submit the contact form without enter any information the popup is disappearing.  Anyone came across the same issue? Any help will be appreciatable
I have did some analysys and changed the following code its started working

$settings['popups']['originalPath'] = $_GET['q'];

//Replaced with following code

$settings['popups']['originalPath'] = 'popups/test';


There is a function in popups.js which will check the end point of the form. Not sure exactly the cause of the issue.

 return done = (path === Popups.originalSettings.popups.originalPath);