- Issue created by @dahousecat
I want to redirect to a PDF file.
However in FieldRedirectionFormatter::shouldDeny() getRouteName() is called on the $redirect_url resulting in an UnexpectedValueException.
Try to redirect to a pdf.
Only call getRouteName if url is routed. E.g.
$route_name = $redirect_url->isRouted() ? $redirect_url->getRouteName() : NULL;
Active
2.3
Code