Fix redirection if the page is in a subdirectory. Fixes buggy links in the devel subdirectory. Code from rsc; tested by me.
Fix redirection if the page is in a subdirectory.
Fixes buggy links in the devel subdirectory.
Code from rsc; tested by me.

R=rsc, gri
CC=golang-dev
http://codereview.appspot.com/197041

pombredanne/go-deleteme,apparentlymart/golang,gnanderson/go,h8liu/golang,pombredanne/go-deleteme,nightlyone/golang,bdwalton/debian-golang,tianon/debian-golang,apparentlymart/golang,h8liu/golang,ssrl/go,dsriram/golang,dsriram/golang,ssrl/go,h8liu/golang,tianon/debian-golang,ssrl/go,ssrl/go,bdwalton/debian-golang,nightlyone/golang,nightlyone/golang,tianon/debian-golang,dsriram/golang,tv42/old-go,tv42/old-go,bdwalton/debian-golang,h8liu/golang,tianon/debian-golang,pombredanne/go-deleteme,h8liu/golang,pombredanne/go-deleteme,nightlyone/golang,bdwalton/debian-golang,dsriram/golang,apparentlymart/golang,ssrl/go,tv42/old-go,gnanderson/go,gnanderson/go,bdwalton/debian-golang,bdwalton/debian-golang,pombredanne/go-deleteme,gnanderson/go,tv42/old-go,nightlyone/golang,tv42/old-go,tianon/debian-golang,pombredanne/go-deleteme,apparentlymart/golang,h8liu/golang,gnanderson/go,ssrl/go,dsriram/golang,dsriram/golang,tv42/old-go,ssrl/go,tianon/debian-golang,nightlyone/golang,apparentlymart/golang,h8liu/golang,bdwalton/debian-golang,tv42/old-go,bdwalton/debian-golang,apparentlymart/golang,tianon/debian-golang,nightlyone/golang,pombredanne/go-deleteme,dsriram/golang,gnanderson/go,gnanderson/go,apparentlymart/golang,tianon/debian-golang