Add permissions to redirected urls