title: How to make url alias in next js and express for posts or users that you get their data by id?
body: <p>I would like to redirect a request url with the blog/:id: formatting for a more user friendly url like the blog/blogtitle and category that i get from a  a json api.
  I manage to solve this partialy by res.redirect after the app.render in my server.js.
  My problem is that next.js initially searches for the url alias as a page component in my pages folder and thus i get a status code of 404 before my res.redirect.
  Any ideas?</p>