Fix password expired path for rails engines

Fix password expired path when redirection is done from a rails engine