3 ms·
If average users will see the URL in their browser, make it meaningful. After all, it is a user interface. X blog.com/users/1234/posts/5678 √ blog.com/tom-
by mLuby 4y ago
If average users will see the URL in their browser, make it meaningful. After all, it is a user interface.
X blog.com/users/1234/posts/5678
√ blog.com/tom-nook/thoughts-about-urls
- adrianmsmith 4y agoBe aware that meaningful names such as "thoughts-about-urls" might change (e.g. if you rename the article) in a way that meainingless IDs will not. If you want your URLs to continue to work then you either need to (a) keep using the previous URL, meaning it's no longer meaningful to the content, (b) change the URL to match the new content, meaning existing links break or (c) support the old and the new versions with a redirection mechanism which is a bunch of effort. Not saying you shouldn't use meaningful URLs but make sure you're going into the decision with your eyes open and preparing to accept the downsides.