I have the following code in Symfony 3 where some users have the wrong links and Symfony is showing a blank page for it. The code is something like this:
/**
* @Route(
* "/account/reset-password/{user_id}/{hash}",
* name="reset_password"
* )
*/
public function accountResetPasswordAction(Request $request, $user_id, $hash) {}
/account/reset-password/1/abcd - this will be proper url
/account/reset-password//abcd - is there anyway I can redirect this to a login page?