Parameters og: url meta tag to remove request parameters

I have an open meta tag on a static page containing a query string, and every time I run it through the Facebook URL, the request value is deleted.

For instance:

http://www.site.com/?ref=23a3as3hth456 

will return

 http://www.site.com/?ref 

Curiously, if a value does not contain numbers, but is a blank line, it will be registered. For instance:

 http://www.site.com/?ref=23a3as3hth456&sample=testing 

will return

 http://www.site.com/?ref&sample=testing 

In addition, the actual page URL contains a query string containing the same values, and when Linter returns to the default page URL, these values ​​are saved.

Does anyone have any additional information about this? I am encoding the entire URL string with urlencode (), but I am still facing this problem. Are there any workarounds, or am I missing something?

Thanks!

+4
source share
1 answer

The answer here turned out to be that the URL I requested did not yet exist.

It looks like Facebook will try to first extract this URL to make sure it exists, and when it was unable to connect, it defaults to my site root.

+6
source

All Articles