replacing redirect with links