Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a reason that there is a slash added to the end of the request path for the cookie path?
While this works for sub-pages of that URL, it does not work for the URL itself.
Example:
Cookie path = /example/
Matches = /example/* but not /example
While:
Cookie path = /example
Matches = /example and /example/*
This allows setting the form errors and confirmations on the form URL itself to not be cached which is part of the intended functionality.
Comments
Comment #1
millenniumtreeI can confirm. Removing the '/' makes it clear the submitted form.
Alternatively, you can just change it to add the cookie to 'Entire Site'. Not ideal, but it works without modifying the module.