logo
  • Start here
  • Episodes
  • Articles
  • Log in
  • Sign up

Pretty URLs in Phoenix using names or slugs

Topics:
Protocols
Permalinks
URL
Phoenix

This is the easiest way to make your Phoenix app use pretty URLs.

Instead of URLs like users/3, we'll set up this vanilla Phoenix app to have URLs like users/Jesse. The same technique will let you link to blog posts by title slug, instead of number, etc...

Thanks to Phoenix.Param, this is surprisingly easy!

Share

Request a free email course
Back to index

No Comments

Log in to leave a comment
Alchemist Camp 2017-2020
Hosted on Digital Ocean
Terms and Conditions