If I understood correctly, it sounds like you have a test that clicks on a hyperlink, that will then close the current window and open a new one? If that is not correct, please add more details.
In order to instruct Selenium to use the new window, you need to use:
selectWindow(windowID)
The windowID
would be the title of the window.