Symfony: no way to get request's referer

Created on 13 Oct 2012  路  3Comments  路  Source: symfony/symfony

$this->getRequest()->headers->get('referer') won't work
also
$this->getRequest()->server->get('HTTP_REFERER');

i know that i shouldn't rely on it, but it's just for customized appearance and a framework needs to support that.

Most helpful comment

$request->server->get('HTTP_REFERER') works for me.

All 3 comments

Try this.

$this->getRequest()->server->get('REFERER');

nope, but i'm starting to think it's a server issue.

sorry for not checking it before opening the ticket.
thanks

$request->server->get('HTTP_REFERER') works for me.

Was this page helpful?
0 / 5 - 0 ratings