jefflunt / rpglogger

(retired) Build your own strategy guide for any RPG
6 stars 0 forks source link

Redirect intelligently for some 404's #142

Open jefflunt opened 12 years ago

jefflunt commented 12 years ago

If a section exists in the database, but is marked as deleted, a 404 is generated instead of a redirect. You should redirect to the containing LogBook (unless it is also marked as deleted, in which case, take the user to the home page). Then add a flash message regarding the page being missing.