Plugin for truly permanent permalinks, via prefixing the id

I made a plugin to prefix the ID to the title, in the permalink, so that
you
can edit your permalink at will. Of course it does all the appropriate
things to find articles by the old links, too, to not invalidate the old
permalinks. Anyone is welcome to grab it from
http://code.google.com/p/typo-permalink-with-id/
or read more about it on that category in my blog:
http://www.timocracy.com/articles/category/typo-permalink-with-id

And the developers are welcome to mainline it, and thus make it
obselete, if
they like it.

On 10/24/06, Tim C. [email protected] wrote:

Very interesting. But if Typo is going to get a mainline feature to
allowing
old permalinks to continue working after updates, I’d prefer storing old
permalinks and doing a redirect like MediaWiki, as opposed to putting a
centrally allocated number in the URI. The URIs just look cleaner.

I went with this approach as a low hanging fruit, and if it stays a
plugin
forever, for those who want it, that’s cool with me. I actually
considered
the centrally allocated number (the id) a bonus. This is more for
keeping
the handy date/title URI, but just tweaking it a tiny bit so that the
text
is editable, without invalidating the permalink. As for look of the
URL,
maybe it is a tiny bit more obscure, but I didn’t really think it could
be
much so. Compare:

old:
http://www.timocracy.com/articles/2006/10/24/funny-rails-shirts-test-of-the-emergency-broadcast-system
new:
http://www.timocracy.com/articles/2006/10/24/24-funny-rails-shirts-test-of-the-emergency-broadcast-system

Maybe it does loose the clarity of the date then? It wouldn’t take too
much
work to make it

new:
http://www.timocracy.com/articles/2006/10/24/article-24-funny-rails-shirts-test-of-the-emergency-broadcast-systemor
something similar.

Now if someone wanted a more wiki-ish permalink scheme, it actually
would be
pretty easy*, I just like throwing the numeric ID in there, because
nobody
looks at blog URIs as much as wiki ones, since they are more likely to
be
interblog than intrablog, thus will have the whole domain and all that
cruft
(from the view of a human readable resource) in the link, anyways. I
just
took this, http://www.notsostupid.com/blog/2006/07/07/urls-on-rails/,
and
re-added the id, since we already have the rest of the slug.

Thanks for the feedback. :smiley:
Tim

*Hell, if there were demand, I might be tempted to design a fuller
featured
plugin that gave you a preference of permalink schemes.

Tim

For those interested in this, a discussion on different/better worse
ways of
doing it seems to have moved to the comments in my blog:
http://www.timocracy.com/articles/2006/10/24/25-typo-plugin-is-live-permalink-with-id-is-1-0ish#comments

Tim