Skip to content

Millenium Bridge Newcastle / Gateshead by Ian Wright.

Fancy blog titles, more to come

If you look at the url for this blog post, you may notice that it in contrast to how urls to blog posts used to look, they now contain (part of) the post title. This makes blog posts stand out between the other types of nodes on the site (such as forum posts or gallery items), and it makes a url easier to recognise.

The change has been retrofitted to all current blog posts on the site.

"WHAT?" I hear you say "You changed all the urls of existing posts?? Now links to my posts will be broken!". The good news however, is that all your old node/362746 style links still work, but they will transparently redirect the browser to the new style urls.

"But I liked the old, much shorter URLs better; they were a lot easier to include in a post somewhere else!". More good news: under the hood, the old style urls are still what makes the site tick, so they are still created for new posts. You can find the old-style url after posting your blog entry in the links section below the post. There should be a 'short url' link to the blog post, using the old-style urls.

"Wow", I can finally hear you say "that is actually rather cool. Why is this just for blog posts? Wouldn't it make sense to have it for gallery items as well?". Sure it does, but I'ld first like to see how this scales before I let Drupal make 1000+ extra aliases.

PS: pathauto is the magic word, and this is the magic patch.