I created a custom success_handler for my login, and here I want to check if the referer was external or not. How do I best do this?
$ref = $request->headers->get('Referer');
What is the best way to check if the referer is a local url (meaning: from within the symfony project) or external ?
Thanks in advance.