Remover proto + hostname in href to enable reverse proxying.

Having the hostname in every href cause trouble reverse proxying since it'll always redirect on the original host. With this change it willsimply push the scriptname.