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

millenniumtree’s picture

I 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.