Add redirect to index action if no id when needed