Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no way to get request's referer #5739

Closed
iamkoby opened this issue Oct 13, 2012 · 4 comments
Closed

no way to get request's referer #5739

iamkoby opened this issue Oct 13, 2012 · 4 comments

Comments

@iamkoby
Copy link

iamkoby commented Oct 13, 2012

$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.

@sstok
Copy link
Contributor

sstok commented Oct 13, 2012

Try this.

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

@iamkoby
Copy link
Author

iamkoby commented Oct 13, 2012

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

sorry for not checking it before opening the ticket.
thanks

@iamkoby iamkoby closed this as completed Oct 13, 2012
@edwardselby
Copy link

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

@kamransoftware
Copy link

You can also use $request->headers->get('referer')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants