Forum OpenACS Q&A: Subsite logins are redirected to "hostname" from in config.tcl after 5.2.3 upgrade

Not sure exactly what's changed but after upgrading to 5.2.3, I'm seeing my host-node mapped subsites redirecting over to the hostname specified in config.tcl for logins. Previously, a login for mysubsite.com would be redirect to https://mysubsite.com and back to http after successful login. Now, users are redirected to https://mymainsite.com (mymainsite.com being the hostname param from config.tcl, i.e., the root node). The logins on the mainsite, though successful, are not resulting in a redirect to the original subsite URL as the proper cookies are not being set. I've set ForceHostP to 1, even though it was previously set to 0. That hasn't helped.

I'm seeing lots of this in the error log, as well:

[24/Jan/2007:13:08:12][24285.1086335328][-conn:mysite::0] Notice: RP (19 ms): error in rp_handler: can't read "tcl_url2file(/admin/host-node-map/)": no such variable
[24/Jan/2007:13:08:13][24285.1087388000][-conn:mysite::1] Notice: RP (13 ms): error in rp_handler: can't read "tcl_url2file(/shared/images/info.gif)": no such variable
[24/Jan/2007:13:08:18][24285.1088440672][-conn:mysite::2] Notice: RP (15 ms): error in rp_handler: can't read "tcl_url2file(/acs-admin/)": no such variable

Don't think it's related as many of the errors are being logged on 200s but it's a bit odd and new as of the upgrade as far as I can tell.

Anyone have an idea as to what's changed and what I can do to return to the old behavior? Thanks.

I've traced this problem to the last change in a commit made by Nima back on 11/21/06: http://cvs.openacs.org/cvs/openacs-4/packages/acs-tcl/tcl/security-procs.tcl?r1=1.38.2.2&r2=1.38.2.3

Can anybody comment on why this change was made? Nima? This looks like a mistake but I want to be sure before changing this back.