Take over the path from the current window when the new window is created.