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.

CommentFileSizeAuthor
form.inc-absolute_autocomplete_url.patch788 bytespounard

Comments

dpearcefl’s picture

Priority: Critical » Normal
Status: Needs review » Postponed (maintainer needs more info)

Has this been fixed in the latest D6?

pounard’s picture

It 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.

pounard’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Rewrote a cleaner and more respectful bug here #1199878: Form autocomplete widget uses absolute URL, closing this one.