Referrer madness. Fixes #95.