Pete's Log: Important bug fix

Entry #2174, (Meta)
(posted when I was 44 years old.)

Branden reported a bug today. I already knew about the bug, but he emailed me a nice thorough bug report. So I figured I better fix it.

The last link in the log navigation was previously statically generated when the page was rendered. So if you loaded a page on Pete's Log when the latest entry was 2173, then the link generated was /log/entry/2173.

But if you left the page open and I then added another entry, that link would continue pointing at entry 2173, but the true last entry would now be 2174.

So the link now points to /log/entry/last and when you click it, it will figure out the true last entry and redirect you there. So now there is one less bug in the world. Well, assuming I didn't introduce any new ones. Which is a big assumption.

Anyway, thanks B!