Support » Plugin: Contact Form 7 » Special Mail Tag [_url] sometimes doesn’t work

  • Resolved morissaflo


    I am using your plugin as a request form on every Woocommerce product page and to know from which page exactly I get request I am using [_url] special mail tag. Generally it work perfectly but very rarely instead of page address I got just domain address.
    For example the user filled form on page
    But in coming mail from Contact From I see just
    What can be the reason? Some security extensions on user-side?
    Below the example of user-agent from what I saw this issue today:
    “Mozilla/5.0 (iPhone; CPU iPhone OS 13_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Mobile/15E148 Safari/604.1”

    • This topic was modified 2 years, 3 months ago by morissaflo.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi


    Where can we see the website in question?

    Thread Starter morissaflo


    Hello, thanks for answer!
    Here is a website I had mentioned
    [ Tiny URL deleted ]
    on any product page there is a form on click “Get Offer”

    Also today I see same problem on another domain. (

    And I also because I am using “[_user_agent]” tag too I see that generally there problem are came from users on MacOS. Today user used for example:

    “Mozilla/5.0 (iPhone; CPU iPhone OS 13_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Mobile/15E148 Safari/604.1”

    As I said it generally words well and I see right url of page but sometimes not…

    • This reply was modified 2 years, 3 months ago by Jan Dembowski. Reason: TinyURL deleted
    Thread Starter morissaflo


    Moreover I suppose this problem is on iPhone only because I checked my mails and I see users who filled contact form on MacOS Desktops there is no problem. But when it is iPhone there is no right url of page, just domain name.

    I don’t have iPhone personally so I can not check this idea.

    Moderator Jan Dembowski


    Forum Moderator and Brute Squad

    @morissaflo Do not use short links in these forums, that has been abused in the past and is expanded when found. I have expanded yours into the link field.

    Plugin Author Takayuki Miyoshi


    Contact Form 7 relies on HTTP_REFERER to retrieve the origin URL of a form submission through the REST API. Some users use a browser extension to hide HTTP_REFERER, and in such cases you only see the host domain part of a URL. It is not abnormal, and you can still get the URL using [_post_url].

    Thread Starter morissaflo


    Wow! Many thanks for your professional answer and for provided solution. I will use [_post_url] instead then. Best Regards!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Special Mail Tag [_url] sometimes doesn’t work’ is closed to new replies.