Fixes #1270, #1272: Correcting issues with invalid redirection with links on reports page modals.