Language negotiation without path prefix

Events happening in the community are now at Drupal community events on www.drupal.org.
escore's picture

Is it possible to negotiate language (user preferences, browser settings) for every url without prefixing the path or domain? The site I'm building uses Drupal for Facebook, a.k.a. DFF, to integrate with Facebook. Facebook requires a single callback base URL from which all paths are built. DFF handles this with a url looking something like www.example.com/fb_cb/12345. Drupal's language handling breaks this by inserting the language prefix before DFF's callback, e.g. www.example.com/fr/fb_cb/12345, which Facebook considers a non-authorized URL and denies access. Is there any way to either hide the path prefix, invisibly negotiating the language or inserting it later in the URL (as a path suffix or injected after the callback base url)?

This seems to be something of a a reoccurring question with complex answers and I'm not drupalist enough to find a solution to my problem. Excuse me if I've missed something obvious. Any hints would be gratefully accepted.

Comments

subscribe

steus's picture

Subscribe, I have some question too

Same problem for Site Verifications

ar-jan's picture

I wasn't actively looking for a solution to this, but I did notice the same problem if you want to verify your website to Google etc. using site_verify module. The verification file gets redirected to a version with language prefix which is not accepted.

Ideas for workarounds?

escore's picture

Is there any way to set the language when the page is generated? If so, how would it work with caching?

Internationalization

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: