[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Possible with some JavaScript



Hi,

Am Freitag, den 24.06.2011, 22:03 +0200 schrieb Albrecht Mann:
> Hello,
> 
> > -=| Joachim Breitner, Fri, Jun 24, 2011 at 11:01:40AM +0200 |=-
> > > bugs.debian.org/#558234 redirects to 
> > > http://www.debian.org/Bugs/#558234.
> > > If that static web page would contain a JavaScript snipped that
> > > checks if the document.hash is a number, that could redirect to
> > > bugs.debian.org/558234. It’s a work-around, but I don’t see any
> > > problem with it.
> > > 
> > > CC’ing the web team, they might be in a position to implement this.
> 
> I'll second the first request, would be nice if that worked (again?).
> Happens way too often that I forget to remove the # when pasting bug
> numbers.
> 
> But I'd still prefer if the check and rewrite could happen server-side
> and not depend on JavaScript, which seems like a kludge; since I don't
> know the codebase, I have no clue if that's feasible.

as said previously somewhere, the # is something that the browser
handles internally to jump to a target, hence the server does not see it
(Unless it was URL-encoded for some reason, in which case it becomes
part of the URL).

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: