Problem/Motivation

Not sure if this problem only exists in 8.x but the module shouldn't redirect to e.g. an alias in case of a POST request since that will silently drop all POST data.

Proposed resolution

check the request method, skip if not GET/HEAD. Write a test for it.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

giancarlosotelo’s picture

Assigned: Unassigned » giancarlosotelo
giancarlosotelo’s picture

Status: Active » Needs review
StatusFileSize
new1.2 KB
juanse254’s picture

Status: Needs review » Needs work
+++ b/src/Tests/GlobalRedirectTest.php
@@ -153,6 +153,13 @@ class GlobalRedirectTest extends WebTestBase {
+    ¶

We can delete that line.

giancarlosotelo’s picture

Status: Needs work » Needs review
StatusFileSize
new1.2 KB

The whole test has empty lines between comments, that's why I added the empty line but probably is better to have everything without that.