Re: [pgsql-www] Excessive # usage in URLs - Mailing list pgsql-www

From Stephen Frost
Subject Re: [pgsql-www] Excessive # usage in URLs
Date
Msg-id 20180620145710.GB27724@tamriel.snowman.net
Whole thread Raw
In response to Re: [pgsql-www] Excessive # usage in URLs  (Magnus Hagander <magnus@hagander.net>)
Responses Re: [pgsql-www] Excessive # usage in URLs
List pgsql-www
Greetings,

* Magnus Hagander (magnus@hagander.net) wrote:
> On Fri, Oct 23, 2015 at 5:28 PM, Magnus Hagander <magnus@hagander.net>
> wrote:
> > In fact, we could have a <a name> for each of those two, so that one could
> > still use the other one if building URLs elsewhere, but the ones generated
> > in the archives could use the shorter id. That's a number that goes up to
> > max 6 digits at this point (and that would actually  be guaranteed to be
> > stable in the future, unlike just using the sequential)
>
> So, do I win anything for best zombie thread back from the dead today?

I think you do.

> It's only been a few years, so I've now actually done this in the shape of
> two tiny commits and I think totaling 11 lines :)
>
> Basically, now:
> * If you navigate to the first message in a thread, no redirect at all is
> done

Woooo!!!!

> * If you navigate to another message, there is a redirect to the # url but
> using the md5 of the messageid keeping a lot shorter than your average
> gmail messageid

Yay.

> Well, that's actually more than 4 lines of code per year, you can't expect
> coding much faster than that!
>
> FWIW, I haven't purged caches so it will gradually start showing up on
> threads in the archives as time go by.

Ok.

Thanks!

Stephen

Attachment

pgsql-www by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: [pgsql-www] Excessive # usage in URLs
Next
From: Bruce Momjian
Date:
Subject: Re: [pgsql-www] Excessive # usage in URLs