Problem/Motivation
When looking at the list of restrictions, using the enable button results in a Client Error:
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: No route found for "GET https://xxxxxx.ddev.site/admin/config/system/restrict_route_by_ip/content_feed_api/enable": Method Not Allowed (Allow: POST) in Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest() (line 131 of /var/www/html/vendor/symfony/http-kernel/EventListener/RouterListener.php).
The problem is presumably caused by the route expecting to be used via a form submission rather than just being a clickable link in a dropbutton.
Steps to reproduce
- Create restriction that isn't enabled.
- View list of restrictions
- Click on enable button
Proposed resolution
- Enable and disable routes are limited to POST method only.
- Suggest either adding GET to the list or just removing the restriction
User interface changes
API changes
Data model changes
Comments
Comment #3
very_random_man commentedComment #4
very_random_man commentedComment #5
very_random_man commented