KristianOellegaard/django-hvad — pull request #151 by qris (2014-01-15 13:12:34+00:00)
Title: Fix #141: TranslatableModelAdmin uses absolute URLs for language tabs

Using absolute URLs is unnecessary and breaks access to the site through a reverse proxy.

On the language tabs of our admin, behind a reverse proxy, we see this:

English
Spanish

`fen-vz-inaspauthoraid.fen.aptivate.org` is an internal hostname which cannot be accessed without a VPN. It's not the URL that we used to load the page, through the reverse proxy.

It's not necessary to include a host and protocol in the rendered links. You can save a little bandwidth (page size) and avoid this problem by using relative links:

url = '%s?%s' % (request.path, urlencode(get))