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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

very_random_man created an issue. See original summary.

very_random_man’s picture

Status: Active » Needs review
very_random_man’s picture

Issue summary: View changes
very_random_man’s picture

Issue summary: View changes