Closed MarkOates closed 7 years ago
URLs currently use IDs to retrieve records: http://www.asdf.com/depot/games/1
http://www.asdf.com/depot/games/1
Instead, URLs should use the slug: http://www.asdf.com/depot/games/name-of-game
http://www.asdf.com/depot/games/name-of-game
slug
Game
games
depot/games/:slug
/cc @amarillion
/ fixes https://github.com/allegroplanet/allegro-planet/issues/16
Problem
URLs currently use IDs to retrieve records:
http://www.asdf.com/depot/games/1
Instead, URLs should use the slug:
http://www.asdf.com/depot/games/name-of-game
Solution
slug
toGame
(through thegames
table in the database)depot/games/:slug
so URLs can use the slugAlso
/cc @amarillion
/ fixes https://github.com/allegroplanet/allegro-planet/issues/16