In my company, we maintain Drupal sites, they are always behind proxies, and can be accessed from various URLs.
In some case, because of files absolute URLs we have to rewrite those with mod_proxy_html, or do multi-site with duplicated cache tables and custom $base_url in each settings.php, for each access URL, for a single site. In some other, we just rewrite URLs coming into the proxy. In both case, this is unmaintanable and way too much complicated.
Because of this, using https AND http on the same site is also a nightmare.
All of this because Drupal write absolute URLs where it should not...
ABSOLUTE URL ARE EVIL! IT BREAKS PROXIES AND NORMAL WEB APPLICATION BEHAVIOR!
So, the last one I found is described in the title, patch is here, I replaced a TRUE to a FALSE.
| Comment | File | Size | Author |
|---|---|---|---|
| form.inc-absolute_autocomplete_url.patch | 788 bytes | pounard |
Comments
Comment #1
dpearcefl commentedHas this been fixed in the latest D6?
Comment #2
pounardIt seems not, I think they won't because it might alter the behavior on existing sites. We still have to rewrite URLs on some sites as far as I know.
On D7, autocomplete URL are still absolute too. I really don't know why they stick to this behavior, they maybe had problems in the past, or it's maybe only historical, I don't know: it's undocumented.
PS: I'm sorry for my original post "kikoulolnothappy" shape, I was tired of fighting with proxies this day :) I think I'm gonna close it and open a new one with updated D7/D8 patch.
Comment #3
pounardRewrote a cleaner and more respectful bug here #1199878: Form autocomplete widget uses absolute URL, closing this one.