redirect to proper id if only slug is used