Return to Notes

Magic URLs

how I avoid deprecated urls with magic urls, which automatically redirect to the latest version of a page

status: Finished
·
certainty: certain
·
importance: 5/10

Magic URLs is a feature developed in tandem with Ally Taffet. magic-urls.js manages the universal slugs for all content on the site, making sure each slug is unique, and accessible. If content is moved, magic-urls.js will take care of rerouting the old url to the new one, ensuring that all links remain functional regardless of changes to the category done in routes such as /notes/category/slug or /essays/category/slug.

Sign in with GitHub to comment

Loading comments...

Citation

Cited as:

Yotam, Kris. (Jul 2025). Magic URLs. krisyotam.com. https://krisyotam.com/notes/website/magic-urls

Or

@article{yotam2025magic-urls,
  title   = "Magic URLs",
  author  = "Yotam, Kris",
  journal = "krisyotam.com",
  year    = "2025",
  month   = "Jul",
  url     = "https://krisyotam.com/notes/website/magic-urls"
}