Skip to content

Make Your Site Portable By Using Permalinks

View on Twitter

💡 Link to permalinks not URLs:

<a href="/slug-goes-here"> ✅
<a href="https://your-domain/slug-goes-here"> 🚫

If you don't do this and put the site on a new domain, all of your sources will link to pages and files that no longer exist.

You might also like
Debug Srcset and Sizes Attributes in Images Read tip
Protect Against Parameter Pollution in Express Read tip
Test Your Regex in a Playground Read tip