Add /donation/cancel route to fix 404 on cancelled PayPal donations
Redirects to the game dashboard instead of 404ing.
This commit is contained in:
@@ -29,4 +29,10 @@ final class HomeController extends AbstractController
|
|||||||
return $this->render(
|
return $this->render(
|
||||||
'website/home/help_wanted.html.twig');
|
'website/home/help_wanted.html.twig');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[Route(path: '/donation/cancel', name: 'website_donation_cancel')]
|
||||||
|
public function donationCancel(): Response
|
||||||
|
{
|
||||||
|
return $this->redirectToRoute('game_dashboard');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user