Re: Excessive # usage in URLs

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-www(at)postgresql(dot)org" <pgsql-www(at)postgresql(dot)org>
Subject: Re: Excessive # usage in URLs
Date: 2015-10-23 15:28:12
Message-ID: CABUevEyD4GjX96WjXg9EUvUdTJPOHSSr09fuATSg5fC9sxo8hg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On Fri, Oct 23, 2015 at 5:26 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
wrote:

> Stephen Frost wrote:
> > * Magnus Hagander (magnus(at)hagander(dot)net) wrote:
> > > The point of the # is that you actually want to point to that specific
> > > message in the thread. If you just pick the first message in the
> thread we
> > > could exclude it, but how else would you link to a specific message?
> >
> > The request isn't to remove the "#" ability for the flat view entirely,
> > it'd just be nice if the site didn't redirect to having the "#" when the
> > message-id after the "#" is the same as the one before the "#" (iow,
> > it's the first message).
>
> Here's another idea. Right now the <A NAME="tag"> tag is the
> message-id, but since messages are added consecutively to a thread, we
> could just assign each of them a number, so that to link the second
> message in a thread we could do this
>
>
> http://www.postgresql.org/message-id/flat/20151023125233(dot)GQ3685(at)tamriel(dot)snowman(dot)net#2
> We could do this in addition to the message-id-based NAME tag.
>

True. We could also use the surrogate key we have in the db.

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)

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Joshua D. Drake 2015-10-23 16:11:45 Re: Excessive # usage in URLs
Previous Message Alvaro Herrera 2015-10-23 15:26:43 Re: Excessive # usage in URLs