Problem/Motivation

If the site is multilingual and uses the path prefix, the code that makes sure the URL is absolute adds the path prefix, but since it actually calls directly a script and not a Drupal callback, the language makes the URL invalid.

Proposed resolution

My first try would be to add the 'language' => LANGUAGE_NONE item to the array of options passed to url(). I'm not sure if this would have any effect on multilingual sites using domains for language detection.

Comments

pinolo’s picture

Status: Active » Needs review
StatusFileSize
new701 bytes

file_create_url() should work.

  • Commit 2c692e7 on 7.x-1.x authored by Pinolo, committed by hejazee:
    Issue #2273579 by Pinolo: Proxy URL doesn't work if a language path...
hejazee’s picture

Status: Needs review » Fixed

Thanks.
committed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.