Hacker News new | ask | show | jobs
by JadeNB 3813 days ago
Wouldn't it be possible to have http://imadefood.com/recipe/NkgHYiLPl/herbs-and-gin redirect to http://imadefood.com/recipe/NkgHYiLPl, or vice versa, thus allowing short links when they are desired and informative links when they are desired?
1 comments

Much simpler than that, simply regex the route to ignore past the recipe ID. Everything after is just descriptive text. This allows both as you suggested. I'm adding this tonight along with some other updates.