From 9f93a9ae1c98d9eea36b84c441fb87731df4f33b Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Fri, 24 Apr 2015 12:31:42 +0200 Subject: [PATCH] [IMP] ir_http: add facebookinternalhit in the list of bot. Avoid redirect in en_US if lang is installed when a link is added via Facebook --- addons/website/models/ir_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/models/ir_http.py b/addons/website/models/ir_http.py index b0bae854949..64c65a75d28 100644 --- a/addons/website/models/ir_http.py +++ b/addons/website/models/ir_http.py @@ -42,7 +42,7 @@ class ir_http(orm.AbstractModel): else: request.uid = request.session.uid - bots = "bot|crawl|slurp|spider|curl|wget".split("|") + bots = "bot|crawl|slurp|spider|curl|wget|facebookexternalhit".split("|") def is_a_bot(self): # We don't use regexp and ustr voluntarily # timeit has been done to check the optimum method