Change redirect from permit method