The first page includes /javascripts/application.js, which has this code in the document.ready handler:
(function($){ $(document).ready(function(){ // ... if(window.opener) { window.opener.location.reload(true); window.close() } }); })(jQuery);