avoid redir loop when going to an internal page that has no permalink