Problem/Motivation

When someone visits a form on /en/form/contact?utm_content=webform_test and afterwards someone visits /en/form/contact the action will still redirect us to /en/form/contact?utm_content=webform_test.

Steps to reproduce

  1. Make sure no caches are disabled
  2. Ignore parameter utm_content
  3. Clear cache
  4. Visit form on /en/form/contact?utm_content=webform_test
  5. Visit form on /en/form/contact
  6. Submit form and get redirect to the page with query parameter

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

victonator created an issue. See original summary.

cilefen’s picture

I can't reproduce this bug as written.

victonator’s picture

Project: Webform » Page Cache Query Ignore
Version: 6.3.0-beta5 » 2.4.0
Issue summary: View changes

Seems to be related to module Page Cache Query Ignore. I'm changing the project.

validoll’s picture

Status: Active » Fixed

This looks like the same class of issue as #3563815 — a redirect response being cached under the stripped cache key, then served to a request whose canonical URL did not contain the ignored parameter.

The new "Ignore redirects" option, added in 2.5.0 via #3563815, resolves this: redirect responses are cached under the core cache key (with the original query string) while normal 200 responses continue to use the stripped key.

Please update to 2.5.0, enable "Ignore redirects" in the settings form, and re-test with the reproduction steps you provided. Marking as fixed pending your confirmation.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.