fix pretty redirect for new tab