Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix Facebook Circular Redirect?

I have a page that redirects to another page I'm trying to test my url on: https://developers.facebook.com/tools/debug

I get this error:

Errors That Must Be Fixed: Circular Redirect:‎ Circular redirect path detected (see Redirect Path section for details).  Warnings That Should Be Fixed: ‎The og:url property should be explicitly provided, even if a value can be inferred from other tags.‎ 
  1. How can I fix this problem?
  2. How to detect Facebook and, if it is Facebook, don't redirect?
like image 284
user1057679 Avatar asked Nov 22 '11 15:11

user1057679


People also ask

What is Facebook redirect?

The Redirect Initiative helps combat violent extremism and dangerous organizations by redirecting hate and violence-related search terms towards resources, education, and outreach groups that can help.

Can you use redirect links on Facebook?

Worst of all, you can't add a redirect. That's right; there is no way by default to direct a user from one Facebook page to another automatically. If you change your Username or URL, and someone visits the old URL, they hit a 404 page.


1 Answers

I just resolved this by adding a "/" to the end of the Facebook url meta tag. So, changed

<meta property="og:url" content="http://domain.com/path"/> 

to

<meta property="og:url" content="http://domain.com/path/"/> 

and that did the trick!

like image 91
kenitech Avatar answered Nov 12 '22 18:11

kenitech