Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Improvement ] Special mail-tags [_url] referer alternative #1493

Open
michaelw85 opened this issue Oct 24, 2024 · 0 comments
Open

[ Improvement ] Special mail-tags [_url] referer alternative #1493

michaelw85 opened this issue Oct 24, 2024 · 0 comments

Comments

@michaelw85
Copy link
Contributor

Context:
When using the special mail tag [_url] the code relies on $_SERVER['HTTP_REFERER'] to retrieve the url the form was posted on.

Problem
HTTP_REFERER is not always available. For example, when the referrer policy is set to no-referrer it will be empty.

Solution
Find an alternative to determine the url the form was posted on.
Idea: Hidden field posting the current url, use HTTP_REFERER as a fallback.

Related: #1491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant