enter behavior works properly with window.location